diff options
-rw-r--r-- | src/tabwindow/rekonqwindow.cpp | 10 | ||||
-rw-r--r-- | src/tabwindow/rekonqwindow.h | 2 | ||||
-rw-r--r-- | src/tabwindow/tabwindow.cpp | 8 | ||||
-rw-r--r-- | src/webwindow/webwindow.cpp | 6 | ||||
-rw-r--r-- | src/webwindow/webwindow.h | 1 |
5 files changed, 16 insertions, 11 deletions
diff --git a/src/tabwindow/rekonqwindow.cpp b/src/tabwindow/rekonqwindow.cpp index eb511b18..8bc96d87 100644 --- a/src/tabwindow/rekonqwindow.cpp +++ b/src/tabwindow/rekonqwindow.cpp @@ -125,9 +125,6 @@ RekonqWindow::RekonqWindow(QWidget* parent) ktwsm->dummyInit(); sWindowList->append(this); - // a decent minimum size... - setMinimumSize(100,40); - QString geometry; KCmdLineArgs *args = KCmdLineArgs::parsedArgs("kde"); if (args && args->isSet("geometry")) @@ -158,6 +155,13 @@ RekonqWindow::~RekonqWindow() } +QSize RekonqWindow::sizeHint() const +{ + QRect desktopRect = QApplication::desktop()->screenGeometry(); + QSize size = desktopRect.size() * 0.8; + return size; +} + QList<RekonqWindow*> RekonqWindow::windowList() { return *sWindowList; diff --git a/src/tabwindow/rekonqwindow.h b/src/tabwindow/rekonqwindow.h index c7fe80d1..67f0fcfa 100644 --- a/src/tabwindow/rekonqwindow.h +++ b/src/tabwindow/rekonqwindow.h @@ -60,6 +60,8 @@ public: virtual ~RekonqWindow(); + QSize sizeHint() const; + /** * List of members of RekonqWindow class. */ 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)); } } diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp index 592000c9..e76d1d5d 100644 --- a/src/webwindow/webwindow.cpp +++ b/src/webwindow/webwindow.cpp @@ -613,12 +613,6 @@ QString WebWindow::title() const } -QIcon WebWindow::icon() const -{ - return _tab->view()->icon(); -} - - UrlBar *WebWindow::urlBar() { return _bar; diff --git a/src/webwindow/webwindow.h b/src/webwindow/webwindow.h index affa5cb1..fa465ddc 100644 --- a/src/webwindow/webwindow.h +++ b/src/webwindow/webwindow.h @@ -71,7 +71,6 @@ public: KUrl url() const; QString title() const; - QIcon icon() const; UrlBar *urlBar(); WebTab *view(); |