summaryrefslogtreecommitdiff
path: root/src/mainview.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/mainview.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/mainview.h')
-rw-r--r--src/mainview.h7
1 files changed, 4 insertions, 3 deletions
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<HistoryItem> recentlyClosedTabs();
+ inline QList<HistoryItem> recentlyClosedTabs() { return m_recentlyClosedTabs; }
signals:
// tab widget signals