diff options
author | Ken Moore <ken@ixsystems.com> | 2017-08-29 13:08:26 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-08-29 13:08:26 -0400 |
commit | fca13b7dd02f5445e0523cb7736abcd91c7b2864 (patch) | |
tree | 207b22e46ee950eea41a3d8c1072aecc163a538a /src-qt5/core/lumina-desktop-unified/src-desktop/ContextMenu.h | |
parent | Cleanup the DesktopSettings class and add some more settings files to it. (diff) | |
download | lumina-fca13b7dd02f5445e0523cb7736abcd91c7b2864.tar.gz lumina-fca13b7dd02f5445e0523cb7736abcd91c7b2864.tar.bz2 lumina-fca13b7dd02f5445e0523cb7736abcd91c7b2864.zip |
Start getting the Root context menu all moved over from Lumina 1 to 2.
Not quite finished yet.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-desktop/ContextMenu.h')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-desktop/ContextMenu.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/ContextMenu.h b/src-qt5/core/lumina-desktop-unified/src-desktop/ContextMenu.h index 7fd21967..31daa0a8 100644 --- a/src-qt5/core/lumina-desktop-unified/src-desktop/ContextMenu.h +++ b/src-qt5/core/lumina-desktop-unified/src-desktop/ContextMenu.h @@ -13,11 +13,13 @@ class DesktopContextMenu : public QMenu{ Q_OBJECT public slots: void SettingsChanged(DesktopSettings::File); - void UpdateMenu(); //re-create the menu + void UpdateMenu(bool fast = true); //re-create the menu private: QLabel *workspaceLabel; QWidgetAction *wkspaceact; + QMenu *appMenu, *winMenu; + bool usewinmenu; public: DesktopContextMenu(QWidget *parent = 0); @@ -29,6 +31,9 @@ private slots: void LaunchAction(QAction *act); void showMenu(const QPoint&); + void updateAppMenu(); + void updateWinMenu(); + signals: void LockSession(); void showLeaveDialog(); |