add: Home (Pos1) and End key bindings in graph GUI (based on @mcd1992 change on RRG repo) (#823)

This commit is contained in:
pwpiwi 2019-05-27 07:58:09 +02:00 committed by GitHub
commit 5f18b0c45d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 20 deletions

View file

@ -29,8 +29,8 @@ class Plot: public QWidget
{
private:
QWidget *master;
int GraphStart;
double GraphPixelsPerPoint;
int GraphStart; // Starting point/offset for the left side of the graph
double GraphPixelsPerPoint; // How many visual pixels are between each sample point (x axis)
int CursorAPos;
int CursorBPos;
void PlotGraph(int *buffer, int len, QRect r,QRect r2, QPainter* painter, int graphNum);
@ -73,13 +73,13 @@ class ProxWidget : public QWidget
//OpsShow(void);
protected:
// void paintEvent(QPaintEvent *event);
// void paintEvent(QPaintEvent *event);
void closeEvent(QCloseEvent *event);
void showEvent(QShowEvent *event);
void hideEvent(QHideEvent *event);
// void mouseMoveEvent(QMouseEvent *event);
// void mousePressEvent(QMouseEvent *event) { mouseMoveEvent(event); }
// void keyPressEvent(QKeyEvent *event);
// void mouseMoveEvent(QMouseEvent *event);
// void mousePressEvent(QMouseEvent *event) { mouseMoveEvent(event); }
// void keyPressEvent(QKeyEvent *event);
public slots:
void applyOperation();
void stickOperation();
@ -111,7 +111,7 @@ class ProxGuiQT : public QObject
int argc;
char **argv;
WorkerThread *proxmarkThread;
public:
ProxGuiQT(int argc, char **argv, WorkerThread *wthread);
~ProxGuiQT(void);