Browse files

fixing toolbar positioning

  • Loading branch information...
1 parent 2491e5c commit 421e16ed9fd26cf197f81e499a74d41c660b89a8 Paulo Cesar committed Dec 2, 2009
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/mainwindow.cpp
  2. +1 −1 src/toolbar.cpp
View
4 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)
View
2 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);

0 comments on commit 421e16e

Please sign in to comment.