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/mainview.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mainview.h') diff --git a/src/mainview.h b/src/mainview.h index 6eacc104..0cff4c81 100644 --- a/src/mainview.h +++ b/src/mainview.h @@ -37,6 +37,7 @@ // Local Includes #include "webview.h" #include "webpage.h" +#include "webtab.h" #include "application.h" #include "historymanager.h" #include "mainwindow.h" @@ -72,7 +73,7 @@ public: MainView(MainWindow *parent); ~MainView(); - StackedUrlBar *widgetBar() const; + inline StackedUrlBar *widgetBar() const { return _widgetBar; } UrlBar *urlBar() const; WebTab *webTab(int index) const; @@ -88,7 +89,7 @@ public: void setTabBarHidden(bool hide); - QToolButton *addTabButton() const; + inline QToolButton *addTabButton() const { return m_addTabButton; } /** * This function creates a new empty tab @@ -100,7 +101,7 @@ public: */ WebTab *newWebTab(bool focused = true, bool nearParent = false); - QList recentlyClosedTabs(); + inline QList recentlyClosedTabs() { return m_recentlyClosedTabs; } signals: // tab widget signals -- cgit v1.2.1