From 78325dc56078f7991068eb7b2dbe0e25ab7dc924 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 21 May 2010 12:05:48 +0200 Subject: inlined some of the most used get functions to speed up a bit --- src/mainwindow.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mainwindow.h') 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); -- cgit v1.2.1