summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-01-07 17:49:24 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-01-07 17:49:24 +0100
commitcb84ae8badcab5bfe095e71cf4c0e33175e60817 (patch)
treeb84bf5b9ea1ef4e8056d69647b286f5a6de0017e /src/application.cpp
parentAdded a visit count parameter to the history. (diff)
downloadrekonq-cb84ae8badcab5bfe095e71cf4c0e33175e60817.tar.xz
This GCI task adds a combobox with different settings to choice when hovering tabs:
* tab preview (default one) * show title as tooltip * show url as tooltip * show nothing Patch by Furkan Uzumcu, reviewed (and merged) by adjam BUG:260343 RB:100282
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 41c6e762..466a0a4e 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -528,6 +528,35 @@ void Application::updateConfiguration()
Application::historyManager()->loadSettings();
Application::adblockManager()->loadSettings();
+ // hovering unfocused tabs options
+ switch(ReKonfig::hoveringTabOption())
+ {
+ case 0: // tab previews
+ case 3: // nothing
+ for (int i = 0; i < mainWindow()->mainView()->tabBar()->count(); i++)
+ {
+ mainWindow()->mainView()->tabBar()->setTabToolTip(i, "");
+ }
+ break;
+
+ case 1: // title previews
+ for (int i = 0; i < mainWindow()->mainView()->tabBar()->count(); i++)
+ {
+ mainWindow()->mainView()->tabBar()->setTabToolTip(i, mainWindow()->mainView()->tabText(i).remove('&'));
+ }
+ break;
+
+ case 2: // url previews
+ for (int i = 0; i < mainWindow()->mainView()->tabBar()->count(); i++)
+ {
+ mainWindow()->mainView()->tabBar()->setTabToolTip(i, mainWindow()->mainView()->webTab(i)->url().toMimeDataString());
+ }
+ break;
+
+ default: // non extant case
+ break;
+ }
+
defaultSettings = 0;
}