summaryrefslogtreecommitdiff
path: root/vcl/inc/qt5
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2018-05-24 15:04:02 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2018-06-01 10:06:32 +0200
commitb971f2cc18ff3ad46e1bb27ba983ea0a4bbb3be2 (patch)
tree015c6fdcaff9aa38e3e6ca71f168a2e22f529d51 /vcl/inc/qt5
parentcd762c362e2de178d928d1cca52e291b9a1e8d70 (diff)
Basic structure of a slot to dispatch commands from menu
Change-Id: If3a134f67f59d3238c27eb0fef99bf49a8970433
Diffstat (limited to 'vcl/inc/qt5')
-rw-r--r--vcl/inc/qt5/Qt5Menu.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/inc/qt5/Qt5Menu.hxx b/vcl/inc/qt5/Qt5Menu.hxx
index 38dcc3688b1f..408d97e76520 100644
--- a/vcl/inc/qt5/Qt5Menu.hxx
+++ b/vcl/inc/qt5/Qt5Menu.hxx
@@ -17,8 +17,9 @@ class QMenuBar;
class Qt5MenuItem;
class Qt5Frame;
-class Qt5Menu : public SalMenu
+class Qt5Menu : public QObject, public SalMenu
{
+ Q_OBJECT
private:
std::vector< Qt5MenuItem* > maItems;
VclPtr<Menu> mpVCLMenu;
@@ -53,6 +54,9 @@ public:
Menu* GetMenu() { return mpVCLMenu; }
unsigned GetItemCount() { return maItems.size(); }
Qt5MenuItem* GetItemAtPos( unsigned nPos ) { return maItems[ nPos ]; }
+
+private slots:
+ void DispatchCommand();
};
class Qt5MenuItem : public SalMenuItem