summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index d8f6114f..ffc91086 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -70,11 +70,12 @@ public:
MainWindow();
~MainWindow();
- MainView *mainView() const;
+ inline MainView *mainView() const { return m_view; }
+ inline KActionCollection *actionCollection() const { return m_ac; }
+ inline QAction *actionByName(const QString &name) { return actionCollection()->action(name); }
+
WebTab *currentTab() const;
- QAction *actionByName(const QString &name);
virtual QSize sizeHint() const;
- virtual KActionCollection *actionCollection() const;
void setWidgetsVisible(bool makeFullScreen);
void setZoomSliderFactor(qreal factor);
@@ -115,6 +116,8 @@ protected:
*/
void keyPressEvent(QKeyEvent *event);
+ bool queryClose();
+
private slots:
void postLaunch();
void browserLoading(bool);