From 9613bd9cf8f3c4c2798911c4926d4cbf14362496 Mon Sep 17 00:00:00 2001 From: Vadim Kurland Date: Fri, 6 Jun 2008 19:08:12 +0000 Subject: [PATCH] restoreGeometry restores window size but does not restore window position on the screen --- doc/ChangeLog | 8 ++++++++ src/gui/FWBSettings.cpp | 4 ---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index 2a23ce755..a30cfd2a6 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,11 @@ +2008-06-06 Vadim Kurland + + * FWBSettings.cpp (FWBSettings::restoreGeometry): the program will + remember window size and restore it on subsequent runs, but will + not remember window position on the screen. This caused problems + on Mac OS X (because window title bar and tool bar weren't taken + into account, so window would slide up on every next run) + 2008-06-05 Vadim Kurland * PolicyCompiler_ipt.cpp (checkUserServiceInWrongChains::processNext): diff --git a/src/gui/FWBSettings.cpp b/src/gui/FWBSettings.cpp index 0436a0d73..b36ee3db1 100644 --- a/src/gui/FWBSettings.cpp +++ b/src/gui/FWBSettings.cpp @@ -408,7 +408,6 @@ void FWBSettings::restoreGeometry(QWidget *w) } w->resize( QSize(width,height) ); - w->move( QPoint(x,y) ); } void FWBSettings::restoreGeometry(QWidget *w, const QRect &dg) @@ -438,10 +437,7 @@ void FWBSettings::restoreGeometry(QWidget *w, const QRect &dg) name.toAscii().constData(), w->isVisible(), x,y); } -// w->setGeometry( QRect(x,y,width,height) ); - w->resize( QSize(width,height) ); - w->move( QPoint(x,y) ); } void FWBSettings::saveGeometry(QWidget *w)