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/hexeditor.h | |
| parent | 6e8fb8761a627d79c26bde4e7351022f707bb6fb (diff) | |
Add MenuHelper for better menu behavior.
Diffstat (limited to 'ui/hexeditor.h')
| -rw-r--r-- | ui/hexeditor.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/hexeditor.h b/ui/hexeditor.h index 26f877b9..b628a2dd 100644 --- a/ui/hexeditor.h +++ b/ui/hexeditor.h @@ -54,20 +54,16 @@ public: static void registerActions(); private: - class HexEditorHighlightWidget: public QLabel + class HexEditorHighlightWidget: public MenuHelper { public: HexEditorHighlightWidget(HexEditor* parent); protected: - virtual void mousePressEvent(QMouseEvent* event); - virtual void enterEvent(QEvent* event); - virtual void leaveEvent(QEvent* event); + virtual void showMenu(); private: HexEditor* m_editor; - Menu m_menu; - ContextMenuManager m_contextMenuManager; }; class HexEditorStatusBarWidget: public StatusBarWidget |
