diff options
author | Roberto C. Sanchez <roberto@connexer.com> | 2014-10-21 22:48:25 -0400 |
---|---|---|
committer | Roberto C. Sanchez <roberto@connexer.com> | 2014-10-21 22:48:25 -0400 |
commit | b954e6dbcceaba3b50aca624e1bddc6db4830829 (patch) | |
tree | 31fa8e2579585c9626d56bc9beb55326cbd40ff2 /src/frontend/displaywindow/bttoolbarpopupaction.h | |
parent | 04e7ba8bf082e2b170595eef488834accd9d946e (diff) |
Imported Upstream version 2.2
Diffstat (limited to 'src/frontend/displaywindow/bttoolbarpopupaction.h')
-rw-r--r-- | src/frontend/displaywindow/bttoolbarpopupaction.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/frontend/displaywindow/bttoolbarpopupaction.h b/src/frontend/displaywindow/bttoolbarpopupaction.h index 63ed491..7615c02 100644 --- a/src/frontend/displaywindow/bttoolbarpopupaction.h +++ b/src/frontend/displaywindow/bttoolbarpopupaction.h @@ -24,7 +24,12 @@ public: BtToolBarPopupAction(const QIcon& icon, const QString& text, QObject* parent); ~BtToolBarPopupAction(); + +// return the QMenu object so a popup menu can be constructed QMenu* popupMenu() const; + +// Function to catch the Shortcut event and emit the triggered signal + virtual bool event(QEvent* e); signals: void triggered(); @@ -33,6 +38,8 @@ protected: QWidget* createWidget(QWidget* parent); private slots: + +// Slot to emit a triggered signal when the toolbar button is pressed void buttonPressed(); private: |