diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-01-07 17:49:24 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-01-07 17:49:24 +0100 |
commit | cb84ae8badcab5bfe095e71cf4c0e33175e60817 (patch) | |
tree | b84bf5b9ea1ef4e8056d69647b286f5a6de0017e /src/mainview.cpp | |
parent | Added a visit count parameter to the history. (diff) | |
download | rekonq-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.cpp | 4 |
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(); } |