summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFurkan Uzumcu <furkanuzumcu@gmail.com>2011-11-20 18:11:07 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-11-20 18:11:07 +0100
commit59edc2a28dd46a75dab0166901ec6e13ccef5941 (patch)
treea7657903fb169244912d16b09996fdd997660943 /src
parentUse title instead of URL when adding application shortcuts (diff)
downloadrekonq-59edc2a28dd46a75dab0166901ec6e13ccef5941.tar.xz
Clean up MainView::webViewUrlChanged() code
REVIEW:102818 REVIEWED-BY: adjam
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp2
-rw-r--r--src/mainview.cpp6
2 files changed, 2 insertions, 6 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 1b4e169e..6ef0b0c3 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -641,7 +641,7 @@ void Application::updateConfiguration()
case 3: // nothing
for (int i = 0; i < mainWindow()->mainView()->tabBar()->count(); i++)
{
- mainWindow()->mainView()->tabBar()->setTabToolTip(i, "");
+ mainWindow()->mainView()->tabBar()->setTabToolTip(i, QL1S(""));
}
break;
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 15c78f5a..1ad452ea 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -596,12 +596,8 @@ void MainView::webViewUrlChanged(const QUrl &url)
{
WebView *view = qobject_cast<WebView *>(sender());
int index = indexOf(view->parentWidget());
- if (-1 != index)
- {
- tabBar()->setTabData(index, url);
- }
if (ReKonfig::hoveringTabOption() == 2)
- tabBar()->setTabToolTip(index, webTab(index)->url().toMimeDataString());
+ tabBar()->setTabToolTip(index, url.toString());
}