diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-21 12:05:48 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-21 12:05:48 +0200 |
commit | 78325dc56078f7991068eb7b2dbe0e25ab7dc924 (patch) | |
tree | 8c0e3f35567770cc5e5767811d5121e21b7209bf /src/mainwindow.h | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-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.h | 7 |
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); |