summaryrefslogtreecommitdiff
path: root/src/mainview.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/mainview.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/mainview.cpp')
-rw-r--r--src/mainview.cpp4
1 files changed, 4 insertions, 0 deletions
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();
}