From d44dbdafcd96dd988076b729810af964a6e9bf7c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 2 Jan 2012 11:37:41 +0100 Subject: Clean up rekonq.kcfg It was really a mess before. I also found 2 settings never used... WARNING: This will cost users to reset some settings. Sorry for that --- src/application.cpp | 8 +-- src/mainview.cpp | 2 +- src/rekonq.kcfg | 136 +++++++++++++++++++++++------------------- src/settings/settings_tabs.ui | 19 +++++- src/webpage.cpp | 6 +- 5 files changed, 97 insertions(+), 74 deletions(-) (limited to 'src') diff --git a/src/application.cpp b/src/application.cpp index 942e0876..fb67c236 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -454,14 +454,14 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type) switch (newType) { case Rekonq::NewTab: - if (ReKonfig::openTabNoWindow()) + if (ReKonfig::openLinksInNewWindow()) { - tab = w->mainView()->newWebTab(!ReKonfig::openTabsBack()); + w = newMainWindow(); + tab = w->mainView()->currentWebTab(); } else { - w = newMainWindow(); - tab = w->mainView()->currentWebTab(); + tab = w->mainView()->newWebTab(!ReKonfig::openNewTabsInBackground()); } break; case Rekonq::NewFocusedTab: diff --git a/src/mainview.cpp b/src/mainview.cpp index 5e616ff7..008eda09 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -303,7 +303,7 @@ WebTab *MainView::newWebTab(bool focused) connect(tab->page(), SIGNAL(windowCloseRequested()), this, SLOT(windowCloseRequested())); connect(tab->page(), SIGNAL(printRequested(QWebFrame *)), this, SIGNAL(printRequested(QWebFrame *))); - if (ReKonfig::openTabsNearCurrent()) + if (ReKonfig::openNewTabsNearCurrent()) { insertTab(currentIndex() + 1, tab, i18n("(Untitled)")); m_widgetBar->insertWidget(currentIndex() + 1, tab->urlBar()); diff --git a/src/rekonq.kcfg b/src/rekonq.kcfg index 08bae46b..bfaece5f 100644 --- a/src/rekonq.kcfg +++ b/src/rekonq.kcfg @@ -55,18 +55,12 @@ 1 - - 0 - - - 0 + + false http://www.kde.org/ - - false - KGlobalSettings::downloadPath() @@ -79,33 +73,9 @@ false - - 0 - - - true - false - - true - - - true - - - true - - - true - - - true - - - true - false @@ -114,29 +84,52 @@ - + + + 0 + + + 0 + + + + 0 + + + true + + false + false false - + true - + + false + + true - - false + + true - - 0 + + + + + + + - - false + + true false @@ -144,9 +137,6 @@ 2 - - true - @@ -187,29 +177,30 @@ 1 - - - - - - - 0 + + true - - false + + true - - false + + true - - false + + true - + true - + true + + + + + + true @@ -219,9 +210,11 @@ false - - true + + + 0 + false @@ -231,8 +224,24 @@ false - - + + + true + + + false + + + false + + + false + + + true + + + true @@ -259,6 +268,7 @@ + diff --git a/src/settings/settings_tabs.ui b/src/settings/settings_tabs.ui index ca30dd54..8379ad61 100644 --- a/src/settings/settings_tabs.ui +++ b/src/settings/settings_tabs.ui @@ -188,6 +188,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -196,7 +209,7 @@ - + Open links in new tab instead of in new window @@ -217,14 +230,14 @@ - + Open new tabs in the background - + Open new tabs after currently active one diff --git a/src/webpage.cpp b/src/webpage.cpp index 7a321f3d..61cc50d6 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -253,13 +253,13 @@ WebPage *WebPage::createWindow(QWebPage::WebWindowType type) kDebug() << "Modal Dialog"; WebTab *w = 0; - if (ReKonfig::openTabNoWindow()) + if (ReKonfig::openLinksInNewWindow()) { - w = rApp->mainWindow()->mainView()->newWebTab(!ReKonfig::openTabsBack()); + w = rApp->newMainWindow()->mainView()->currentWebTab(); } else { - w = rApp->newMainWindow()->mainView()->currentWebTab(); + w = rApp->mainWindow()->mainView()->newWebTab(!ReKonfig::openNewTabsInBackground()); } return w->page(); } -- cgit v1.2.1