summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-21 12:05:48 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-21 12:05:48 +0200
commit78325dc56078f7991068eb7b2dbe0e25ab7dc924 (patch)
tree8c0e3f35567770cc5e5767811d5121e21b7209bf /src/mainwindow.h
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-78325dc56078f7991068eb7b2dbe0e25ab7dc924.tar.xz
inlined some of the most used get functions
to speed up a bit
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 1f6c6931..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);