summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-02-05 09:18:04 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-02-05 09:18:04 +0100
commit2eaf8b2489e834175a67c677521385022422b899 (patch)
tree1ede4db9eec88d3f6194bbb8cf6b22c75ec22504 /src/mainwindow.cpp
parentclean up download management (diff)
downloadrekonq-2eaf8b2489e834175a67c677521385022422b899.tar.xz
Make rekonq menu appear inside rekonq's window (as Dolphin does)
BUG:283269
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index fb5eb0fe..97f4d94e 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -46,6 +46,7 @@
#include "historypanel.h"
#include "iconmanager.h"
#include "mainview.h"
+#include "rekonqmenu.h"
#include "sessionmanager.h"
#include "settingsdialog.h"
#include "stackedurlbar.h"
@@ -555,7 +556,7 @@ void MainWindow::setupTools()
toolsAction->setDelayed(false);
toolsAction->setShortcutConfigurable(true);
toolsAction->setShortcut(KShortcut(Qt::ALT + Qt::Key_T));
- m_rekonqMenu = new KMenu(this);
+ m_rekonqMenu = new RekonqMenu(this);
toolsAction->setMenu(m_rekonqMenu); // dummy menu to have the dropdown arrow
// adding rekonq_tools to rekonq actionCollection
@@ -1526,6 +1527,9 @@ void MainWindow::setupBookmarksAndToolsShortcuts()
if (toolsButton)
{
connect(actionByName(QL1S("rekonq_tools")), SIGNAL(triggered()), toolsButton, SLOT(showMenu()));
+
+ // HACK: set button widget in rekonq menu
+ m_rekonqMenu->setButtonWidget(toolsButton);
}
}