Mercurial > hg > svgui
diff widgets/PropertyBox.h @ 1587:2108af725460
Add context menus to property box controls
author | Chris Cannam |
---|---|
date | Fri, 27 Mar 2020 14:36:11 +0000 |
parents | b1e3ee5f1be6 |
children | a798a7b5e215 |
line wrap: on
line diff
--- a/widgets/PropertyBox.h Fri Mar 27 11:04:56 2020 +0000 +++ b/widgets/PropertyBox.h Fri Mar 27 14:36:11 2020 +0000 @@ -29,6 +29,7 @@ class LEDButton; class QToolButton; class NotifyingPushButton; +class QMenu; class PropertyBox : public QFrame { @@ -68,6 +69,8 @@ void mouseEnteredWidget(); void mouseLeftWidget(); + void contextMenuRequested(const QPoint &); + protected: void updatePropertyEditor(PropertyContainer::PropertyName, bool rangeChanged = false); @@ -81,6 +84,7 @@ QVBoxLayout *m_mainBox; LEDButton *m_showButton; QToolButton *m_playButton; + QMenu *m_lastContextMenu; std::map<QString, QGridLayout *> m_groupLayouts; std::map<QString, QWidget *> m_propertyControllers; };