summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-05-01 02:53:23 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-05-01 02:53:23 +0200
commitca88e015f36d8f729e612e9a70c1b0ed65f0731d (patch)
treebcc5bcb4c376adaca379927e4b6bfcf7c939ee73
parentsetting focus to urlbar on empty tab opened. Some kwarning removal (diff)
downloadrekonq-ca88e015f36d8f729e612e9a70c1b0ed65f0731d.tar.xz
Open tabs in brackground. Step 1
-rw-r--r--src/mainview.h3
-rw-r--r--src/mainwindow.cpp1
-rw-r--r--src/rekonq.kcfg3
-rw-r--r--src/settings_general.ui6
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 @@
<entry name="showSideBar" type="Bool">
<default>false</default>
</entry>
+ <entry name="openTabsBack" type="Bool">
+ <default>false</default>
+ </entry>
</group>
<!-- Fonts Settings -->
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 @@
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
- <string>Appearance</string>
+ <string>Tabbed Browsing</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
@@ -101,9 +101,9 @@
</widget>
</item>
<item>
- <widget class="QCheckBox" name="kcfg_showSideBar">
+ <widget class="QCheckBox" name="kcfg_openTabsBack">
<property name="text">
- <string>Show side panel</string>
+ <string>Open tabs in the background</string>
</property>
</widget>
</item>