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/mainview.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainview.cpp') diff --git a/src/mainview.cpp b/src/mainview.cpp index 94dc1688..42a76758 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -566,6 +566,8 @@ void MainView::webViewTitleChanged(const QString &title) emit currentTitle(viewTitle); } Application::historyManager()->updateHistoryEntry(tab->url(), tabTitle); + if (ReKonfig::hoveringTabOption() == 1) + tabBar()->setTabToolTip(index, tabTitle.remove('&')); } @@ -577,6 +579,8 @@ void MainView::webViewUrlChanged(const QUrl &url) { tabBar()->setTabData(index, url); } + if (ReKonfig::hoveringTabOption() == 2) + tabBar()->setTabToolTip(index, webTab(index)->url().toMimeDataString()); emit tabsChanged(); } -- cgit v1.2.1