┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinrecenttabsmenu.cpp
diff options
context:
space:
mode:
authorDavid Hurka <[email protected]>2020-12-06 18:47:07 +0000
committerDavid Hurka <[email protected]>2021-07-04 15:26:18 +0200
commitfb210d6ec42f1a8fb301c187ca09c4e7647459ef (patch)
tree170fc263295bf15d1470a12acf02ee9ccb0035a0 /src/dolphinrecenttabsmenu.cpp
parentedd0034a5ee376e357fc37ff55b9f7e09356fee1 (diff)
Port to new KActionMenu popup mode API
Use KActionMenu and KToolBarPopupAction::setPopupMode() methods instead of setDelayed() and setStickyMenu(). Are available since KF 5.77 and KF 5.78 respectively, which is already required by Dolphin.
Diffstat (limited to 'src/dolphinrecenttabsmenu.cpp')
-rw-r--r--src/dolphinrecenttabsmenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphinrecenttabsmenu.cpp b/src/dolphinrecenttabsmenu.cpp
index dede2f643..38eb4f657 100644
--- a/src/dolphinrecenttabsmenu.cpp
+++ b/src/dolphinrecenttabsmenu.cpp
@@ -15,7 +15,7 @@
DolphinRecentTabsMenu::DolphinRecentTabsMenu(QObject* parent) :
KActionMenu(QIcon::fromTheme(QStringLiteral("edit-undo")), i18n("Recently Closed Tabs"), parent)
{
- setDelayed(false);
+ setPopupMode(QToolButton::InstantPopup);
setEnabled(false);
m_clearListAction = new QAction(i18n("Empty Recently Closed Tabs"), this);