From cb84ae8badcab5bfe095e71cf4c0e33175e60817 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 7 Jan 2011 17:49:24 +0100 Subject: 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 --- src/application.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'src/application.cpp') 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; } -- cgit v1.2.1