diff options
| author | Kai Uwe Broulik <[email protected]> | 2022-01-28 20:02:49 +0100 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2022-01-31 12:06:08 +0000 |
| commit | 1c5b6d4d1042877863801e3c0b683e8a9c41be18 (patch) | |
| tree | f1da2189aa6f16d5de611cb3add78c7988fa7b61 /src/dolphinmainwindow.cpp | |
| parent | d68bb06e890d60613fdc839690e3cd047d726fcd (diff) | |
Add "Unlock panels" to main window context menu
It's the Qt-provided one that shows on the menu bar
and dock widget title bars.
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 9bcfc9ebb..9b4ac64c9 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1177,6 +1177,16 @@ void DolphinMainWindow::openContextMenu(const QPoint& pos, } } +QMenu *DolphinMainWindow::createPopupMenu() +{ + QMenu *menu = KXmlGuiWindow::createPopupMenu(); + + menu->addSeparator(); + menu->addAction(actionCollection()->action(QStringLiteral("lock_panels"))); + + return menu; +} + void DolphinMainWindow::updateHamburgerMenu() { KActionCollection* ac = actionCollection(); |
