From 421e16ed9fd26cf197f81e499a74d41c660b89a8 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Date: Wed, 2 Dec 2009 18:03:15 -0200 Subject: [PATCH] fixing toolbar positioning --- src/mainwindow.cpp | 4 ++-- src/toolbar.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a153dc0..ebcdcf5 100755 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -101,8 +101,8 @@ void MainWindow::adjustSizes() webView->setGeometry(0, 0, width(), height()); //webview cover the entire window loadingLabel->setGeometry( width()/2 - 45, height()/2 - 45, 90, 90); //put the label on the center errorBox->setGeometry( width()/2 - 150, height()/2 - 75, 300, 150); //put the error box on the center - toolbar->setGeometry( 0, 442, 800, 38 ); - miniToolbar->setGeometry( 0, 442, 30, 38 ); + toolbar->setGeometry( 0, height() - 38, width(), 38 ); + miniToolbar->setGeometry( 0, height() - 38, 30, 38 ); } void MainWindow::resizeEvent(QResizeEvent* event) diff --git a/src/toolbar.cpp b/src/toolbar.cpp index 4f0fdc1..bcb8bdc 100644 --- a/src/toolbar.cpp +++ b/src/toolbar.cpp @@ -20,7 +20,7 @@ void Toolbar::paintEvent ( QPaintEvent * event ) { Q_UNUSED(event); - QRectF rectangle(-5, 0, 810, 38); + QRectF rectangle(-5, 0, 1280, 38); QPainter painter(this);