diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-23 11:03:44 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-23 11:03:44 +0200 |
commit | 19cc936f19c708e3adb07b1d201600cf027bfb6b (patch) | |
tree | f5196daa35d4e6e8f825cf60ae86c85602b88cde | |
parent | Removed some menu related actions (cloned in the context menus) (diff) | |
download | rekonq-19cc936f19c708e3adb07b1d201600cf027bfb6b.tar.xz |
Applied Lindsay's patch about opening Home Page in new tabs
and changed a bit General UI
-rw-r--r-- | src/mainview.cpp | 5 | ||||
-rw-r--r-- | src/rekonq.kcfg | 3 | ||||
-rw-r--r-- | src/settings_general.ui | 15 |
3 files changed, 19 insertions, 4 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 3eca9ef5..5f0afa5c 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -339,6 +339,11 @@ WebView *MainView::newTab(bool focused) showTabBar(); addTabButtonPosition(); + + if (ReKonfig::newTabsOpenHomePage()) + { + webView->load(QUrl(ReKonfig::homePage())); + } return webView; } diff --git a/src/rekonq.kcfg b/src/rekonq.kcfg index ec2b9a3b..d9ccd3e0 100644 --- a/src/rekonq.kcfg +++ b/src/rekonq.kcfg @@ -23,6 +23,9 @@ <entry name="openTabsBack" type="Bool"> <default>false</default> </entry> + <entry name="newTabsOpenHomePage" type="Bool"> + <default>false</default> + </entry> <entry name="showUrlsPopup" type="Bool"> <default>true</default> </entry> diff --git a/src/settings_general.ui b/src/settings_general.ui index d40dff99..23904354 100644 --- a/src/settings_general.ui +++ b/src/settings_general.ui @@ -17,10 +17,10 @@ <item> <widget class="QGroupBox" name="groupBox"> <property name="title"> - <string>Places</string> + <string>Home Page</string> </property> <layout class="QGridLayout" name="gridLayout"> - <item row="0" column="0"> + <item row="1" column="0"> <widget class="QLabel" name="label_3"> <property name="text"> <string>Home page:</string> @@ -30,7 +30,7 @@ </property> </widget> </item> - <item row="0" column="1"> + <item row="1" column="1"> <widget class="KLineEdit" name="kcfg_homePage"> <property name="sizePolicy"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> @@ -40,7 +40,7 @@ </property> </widget> </item> - <item row="1" column="1"> + <item row="2" column="1"> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QPushButton" name="setHomeToCurrentPageButton"> @@ -64,6 +64,13 @@ </item> </layout> </item> + <item row="0" column="1"> + <widget class="QCheckBox" name="kcfg_newTabsOpenHomePage"> + <property name="text"> + <string>New Tabs open Home Page</string> + </property> + </widget> + </item> </layout> </widget> </item> |