From c73149a4f56b6ec4d4183ac99015d73df2c2e34e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 1 Oct 2012 19:10:21 +0200 Subject: 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 --- src/tabwindow/tabwindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/tabwindow/tabwindow.cpp') 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 #include @@ -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)); } } -- cgit v1.2.1