summaryrefslogtreecommitdiff
path: root/src/webwindow/rekonqfactory.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-08-09 16:06:44 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commit39af36185e1eee1647ce682cf7689a86ffb8a56b (patch)
tree8ea415f901aa0a03a9d546cb3b34668701630f6f /src/webwindow/rekonqfactory.cpp
parentMoved the bookmark toolbar to be a... toolbar!!! (diff)
downloadrekonq-39af36185e1eee1647ce682cf7689a86ffb8a56b.tar.xz
KHelpMenu
Diffstat (limited to 'src/webwindow/rekonqfactory.cpp')
-rw-r--r--src/webwindow/rekonqfactory.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/webwindow/rekonqfactory.cpp b/src/webwindow/rekonqfactory.cpp
index c8aaeb09..78cd0367 100644
--- a/src/webwindow/rekonqfactory.cpp
+++ b/src/webwindow/rekonqfactory.cpp
@@ -30,7 +30,9 @@
#include "rekonqmenu.h"
#include <KActionCollection>
+#include <KCmdLineArgs>
#include <KMenu>
+#include <KHelpMenu>
#include <KStandardDirs>
#include <KToolBar>
@@ -120,7 +122,12 @@ QWidget *RekonqFactory::createWidget(const QString &name, QWidget *parent, KActi
fillMenu(m, node, ac);
return m;
}
- else
+ else if (name == QL1S("help"))
+ {
+ KHelpMenu *m = new KHelpMenu(parent, KCmdLineArgs::aboutData());
+ return m->menu();
+ }
+ else
{
KMenu *m = new KMenu(parent);
fillMenu(m, node, ac);