From ca88e015f36d8f729e612e9a70c1b0ed65f0731d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 1 May 2009 02:53:23 +0200 Subject: Open tabs in brackground. Step 1 --- src/mainview.h | 3 +++ src/mainwindow.cpp | 1 + src/rekonq.kcfg | 3 +++ src/settings_general.ui | 6 +++--- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/mainview.h b/src/mainview.h index ca233872..faa43be9 100644 --- a/src/mainview.h +++ b/src/mainview.h @@ -74,6 +74,7 @@ public: WebView *currentWebView() const { return webView(currentIndex()); } int webViewIndex(WebView *webView) const { return indexOf(webView); } KAction *recentlyClosedTabsAction() const { return m_recentlyClosedTabsAction; } + void setMakeTabCurrent( bool b) { makeTabCurrent = b; } /** * show and hide TabBar if user doesn't choose @@ -189,6 +190,8 @@ private: TabBar *m_tabBar; QString m_loadingGitPath; + + bool makeTabCurrent; }; #endif diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7ac0125c..8426bb94 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -352,6 +352,7 @@ void MainWindow::slotUpdateConfiguration() // ============== General ================== m_homePage = ReKonfig::homePage(); mainView()->showTabBar(); + mainView()->setMakeTabCurrent( ReKonfig::openTabsBack() ); // =========== Fonts ============== QWebSettings *defaultSettings = QWebSettings::globalSettings(); diff --git a/src/rekonq.kcfg b/src/rekonq.kcfg index c6d5b0ff..499258d2 100644 --- a/src/rekonq.kcfg +++ b/src/rekonq.kcfg @@ -26,6 +26,9 @@ false + + false + diff --git a/src/settings_general.ui b/src/settings_general.ui index 580c6bb2..44561b02 100644 --- a/src/settings_general.ui +++ b/src/settings_general.ui @@ -90,7 +90,7 @@ - Appearance + Tabbed Browsing @@ -101,9 +101,9 @@ - + - Show side panel + Open tabs in the background -- cgit v1.2.1