Skip to content

Commit

Permalink
Keep track of mouse position when selecting
Browse files Browse the repository at this point in the history
  • Loading branch information
CouleeApps committed Oct 16, 2020
1 parent 13fdbe0 commit f91f427
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/flowgraphwidget.h
Expand Up @@ -61,6 +61,9 @@ class BINARYNINJAUIAPI FlowGraphWidget: public QAbstractScrollArea, public View,
size_t lineIndexForAddress;
size_t tokenIndex;
size_t characterIndex;
// Directly from QMouseEvent, not used in comparator
int cursorX;
int cursorY;

bool operator<(const CursorPosition& other) const;
};
Expand Down
3 changes: 3 additions & 0 deletions ui/linearview.h
Expand Up @@ -30,6 +30,9 @@ struct BINARYNINJAUIAPI LinearViewCursorPosition
size_t lineIndex;
size_t tokenIndex;
size_t characterIndex;
// Directly from QMouseEvent, not used in comparators
int cursorX;
int cursorY;

LinearViewCursorPosition();
LinearViewCursorPosition(const LinearViewCursorPosition& pos);
Expand Down

0 comments on commit f91f427

Please sign in to comment.