2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Mar 2008 12:52:00 +0000 (12:52 +0000)
committerhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Mar 2008 12:52:00 +0000 (12:52 +0000)
        Reviewed by Simon.

        Moved obscuring progress bar to the lower right corner.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30958 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/qt/ChangeLog
WebKit/qt/QtLauncher/main.cpp

index ebd7cf9..3c5e094 100644 (file)
@@ -2,6 +2,16 @@
 
         Reviewed by Simon.
 
+        Moved obscuring progress bar to the lower right corner.
+
+        * QtLauncher/main.cpp:
+        (MainWindow::MainWindow):
+        (MainWindow::resizeEvent):
+
+2008-03-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
+
+        Reviewed by Simon.
+
         Added reload action and grouped stop and reload actions together.
 
         * QtLauncher/main.cpp:
index eccd7e2..81ea5fd 100644 (file)
@@ -287,9 +287,8 @@ public:
     {
         view = new QWebView(this);
         view->setPage(new WebPage(view));
-        InfoWidget *info = new InfoWidget(view);
-        info->setGeometry(20, 20, info->sizeHint().width(),
-                          info->sizeHint().height());
+        info = new InfoWidget(this);
+
         connect(view, SIGNAL(loadStarted()),
                 info, SLOT(startLoad()));
         connect(view, SIGNAL(loadProgressChanged(int)),
@@ -363,11 +362,16 @@ protected:
         QSize hoverSize = hoverLabel->sizeHint();
         hoverLabel->setGeometry(0, height()-hoverSize.height(),
                                 300, hoverSize.height());
+        QSize infoSize = info->sizeHint();
+        info->setGeometry(width() - infoSize.width(),
+                height() - infoSize.height(),
+                infoSize.width(), infoSize.height());
     }
 private:
     QWebView *view;
     QLineEdit *urlEdit;
     HoverLabel *hoverLabel;
+    InfoWidget *info;
 };
 
 QWebPage *WebPage::createWindow()