summaryrefslogtreecommitdiff
path: root/src/tabwindow/tabwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-10-01 19:10:21 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commitc73149a4f56b6ec4d4183ac99015d73df2c2e34e (patch)
treee11b51a93d8db6e783b29ea3fabe38ccb6a1aa0b /src/tabwindow/tabwindow.cpp
parentFix url suggestions (diff)
downloadrekonq-c73149a4f56b6ec4d4183ac99015d73df2c2e34e.tar.xz
Add sizeHint code from rekonq
oops... by accident (-a) added here also the easy fix for tabs: - shown "Loading..." string while loading - use IconManager to properly show tab icon on load finished
Diffstat (limited to 'src/tabwindow/tabwindow.cpp')
-rw-r--r--src/tabwindow/tabwindow.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp
index cd4ec8ce..36b2caec 100644
--- a/src/tabwindow/tabwindow.cpp
+++ b/src/tabwindow/tabwindow.cpp
@@ -36,6 +36,8 @@
#include "tabhistory.h"
+#include "iconmanager.h"
+
// KDE Includes
#include <KAction>
#include <KApplication>
@@ -305,6 +307,8 @@ void TabWindow::tabLoadStarted()
}
tabBar()->setTabButton(index, QTabBar::LeftSide, 0);
tabBar()->setTabButton(index, QTabBar::LeftSide, label);
+
+ tabBar()->setTabText(index, i18n("Loading..."));
}
}
@@ -328,7 +332,9 @@ void TabWindow::tabLoadFinished(bool ok)
delete movie;
label->setMovie(0);
- label->setPixmap(tab->icon().pixmap(16, 16));
+
+ KIcon ic = IconManager::self()->iconForUrl(tab->url());
+ label->setPixmap(ic.pixmap(16, 16));
}
}