summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-22 22:51:17 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-22 22:51:17 +0200
commit16072a8703434afc39acf991673cf932747d80c6 (patch)
tree6b9e014947a0aea44e9ca6b54c7e646cae403f81 /src/mainwindow.h
parentRekonq 0.2.51 with (just) one urlbar and (just, again) KDE 4.3.1 support (diff)
downloadrekonq-16072a8703434afc39acf991673cf932747d80c6.tar.xz
Removed MenuBar. First steps..
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index b7f9bae1..a2031692 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -36,7 +36,9 @@
#include "webview.h"
// KDE Includes
-#include <KXmlGuiWindow>
+#include <KMainWindow>
+#include <KActionCollection>
+#include <KToolBar>
// Forward Declarations
class QWebFrame;
@@ -55,7 +57,7 @@ class WebView;
* It handles the menus, toolbars, and status bars.
*
*/
-class MainWindow : public KXmlGuiWindow
+class MainWindow : public KMainWindow
{
Q_OBJECT
@@ -67,12 +69,13 @@ public:
WebView *currentTab() const;
QAction *actionByName(const QString name);
virtual QSize sizeHint() const;
-
+ virtual KActionCollection *actionCollection () const;
+
private:
void setupActions();
void setupHistoryMenu();
- void setupBars();
void setupTools();
+ void setupToolbar();
void setupSidePanel();
SidePanel *sidePanel();
@@ -152,6 +155,8 @@ private:
QString m_homePage;
QPointer<KPassivePopup> m_popup;
+
+ KActionCollection *m_ac;
};
#endif // MAINWINDOW_H