From 43b8a9adfbf71b54c50d3b64f91e32635285add5 Mon Sep 17 00:00:00 2001 From: Akos Polster Date: Sat, 18 Jun 2011 21:29:13 +0200 Subject: [PATCH] Fix forward navigation control on Linux. --- adopterwindow.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/adopterwindow.cpp b/adopterwindow.cpp index 7ec642d..b60b61a 100644 --- a/adopterwindow.cpp +++ b/adopterwindow.cpp @@ -216,6 +216,10 @@ void AdopterWindow::placeDecorations() qDebug() << "Has the book view"; int extraHeight = 0; +#if defined(Q_WS_X11) && !defined(Q_WS_MAEMO_5) + extraHeight += toolBarHeight(); +#endif + QRect geo = bookView->geometry(); qDebug() << "bookView:" << geo; @@ -225,8 +229,10 @@ void AdopterWindow::placeDecorations() previousButton->setGeometry(geo.x(), geo.y() + geo.height() - TranslucentButton::pixels + extraHeight, TranslucentButton::pixels, TranslucentButton::pixels); - nextButton->setGeometry(geo.x() + geo.width() - TranslucentButton::pixels, - geo.y(), TranslucentButton::pixels, TranslucentButton::pixels); + nextButton->setGeometry( + geo.x() + geo.width() - TranslucentButton::pixels, + geo.y() + extraHeight, TranslucentButton::pixels, + TranslucentButton::pixels); progress->flash(); previousButton->flash(); nextButton->flash(); -- 1.7.9.5