diff options
| author | Brian Potchik <brian@vector35.com> | 2019-04-13 21:06:13 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2019-04-13 21:06:13 -0400 |
| commit | 8487508eecef5c96848c6a273e87872a2e14a84a (patch) | |
| tree | 058ba6c6d923415190ca00536c3f4d181d27c7e5 /ui/addressindicator.h | |
| parent | 6e8fb8761a627d79c26bde4e7351022f707bb6fb (diff) | |
Add MenuHelper for better menu behavior.
Diffstat (limited to 'ui/addressindicator.h')
| -rw-r--r-- | ui/addressindicator.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/addressindicator.h b/ui/addressindicator.h index 3ad40638..fd9326fe 100644 --- a/ui/addressindicator.h +++ b/ui/addressindicator.h @@ -5,12 +5,12 @@ #include "menus.h" #include "uicontext.h" -class BINARYNINJAUIAPI AddressIndicator: public QLabel + +class BINARYNINJAUIAPI AddressIndicator: public MenuHelper { Q_OBJECT uint64_t m_begin, m_end; - ContextMenuManager m_contextMenu; public: AddressIndicator(QWidget* parent); @@ -18,7 +18,5 @@ public: void setOffsets(uint64_t begin, uint64_t end); protected: - virtual void mousePressEvent(QMouseEvent* event); - virtual void enterEvent(QEvent* event); - virtual void leaveEvent(QEvent* event); + virtual void showMenu(); }; |
