summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2020-06-22 15:30:53 -0400
committerBrian Potchik <brian@vector35.com>2020-06-22 15:30:53 -0400
commit72b0a4e4a2b948bec7b8f000065ea778a860b099 (patch)
tree17a0a7e4588e100b28e8a9e569ce8dbbb0fc4b8a
parent7ca3f1bd374a060ef0aaf7373f47ef1c2516e9dc (diff)
Add option to disable the Menu active on hover feature.
-rw-r--r--ui/menus.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/menus.h b/ui/menus.h
index 5583b88f..4ac751c3 100644
--- a/ui/menus.h
+++ b/ui/menus.h
@@ -41,10 +41,11 @@ protected:
Menu m_menu;
ContextMenuManager m_contextMenuManager;
QTimer* m_timer;
+ bool m_activeOnHover = true;
public:
MenuHelper() { }
- MenuHelper(QWidget* parent);
+ MenuHelper(QWidget* parent, bool activeOnHover = true);
void setBackgroundColorRole(QPalette::ColorRole role = QPalette::Highlight);
void setForegroundColorRole(QPalette::ColorRole role = QPalette::WindowText);