mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-21 17:30:15 +00:00
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.
This commit is contained in:
parent
d68bb06e89
commit
1c5b6d4d10
|
@ -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()
|
void DolphinMainWindow::updateHamburgerMenu()
|
||||||
{
|
{
|
||||||
KActionCollection* ac = actionCollection();
|
KActionCollection* ac = actionCollection();
|
||||||
|
|
|
@ -95,6 +95,12 @@ public:
|
||||||
*/
|
*/
|
||||||
KNewFileMenu* newFileMenu() const;
|
KNewFileMenu* newFileMenu() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Augments Qt's build-in QMainWindow context menu to add
|
||||||
|
* Dolphin-specific actions, such as "unlock panels".
|
||||||
|
*/
|
||||||
|
QMenu *createPopupMenu() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Switch the window's view containers' locations to display the home path
|
* Switch the window's view containers' locations to display the home path
|
||||||
* for any which are currently displaying a location corresponding to or
|
* for any which are currently displaying a location corresponding to or
|
||||||
|
|
Loading…
Reference in a new issue