summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainview.cpp3
-rw-r--r--src/mainview.h6
2 files changed, 4 insertions, 5 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 8432607a..e3e602b8 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -60,13 +60,12 @@
MainView::MainView(MainWindow *parent)
: KTabWidget(parent)
, m_widgetBar(new StackedUrlBar(this))
- , m_addTabButton(0)
+ , m_addTabButton(new QToolButton(this))
, m_currentTabIndex(0)
, m_parentWindow(parent)
{
// setting tabbar
TabBar *tabBar = new TabBar(this);
- m_addTabButton = new QToolButton(this);
setTabBar(tabBar);
// set mouse tracking for tab previews
diff --git a/src/mainview.h b/src/mainview.h
index 22a3a46e..c59bd5e1 100644
--- a/src/mainview.h
+++ b/src/mainview.h
@@ -177,18 +177,18 @@ private:
// --------------------------------------------------------------------------
- StackedUrlBar *m_widgetBar;
+ StackedUrlBar *const m_widgetBar;
QString m_loadingGitPath;
// the new tab button
- QToolButton *m_addTabButton;
+ QToolButton *const m_addTabButton;
int m_currentTabIndex;
QList<HistoryItem> m_recentlyClosedTabs;
- MainWindow *m_parentWindow;
+ MainWindow *const m_parentWindow;
};
#endif // MAINVIEW_H