Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] r57867 - /trunk/control-center/src/main_window.cpp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Fri, 03 Jul 2009 11:41:11 -0000
  • Message-id: <E1MMh8h-0002FL-31@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Fri Jul 3 13:41:10 2009
New Revision: 57867

URL: http://svn.opensuse.org/viewcvs/yast?rev=57867&view=rev
Log:
Remember window position

Modified:
trunk/control-center/src/main_window.cpp

Modified: trunk/control-center/src/main_window.cpp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/control-center/src/main_window.cpp?rev=57867&r1=57866&r2=57867&view=diff
==============================================================================
--- trunk/control-center/src/main_window.cpp (original)
+++ trunk/control-center/src/main_window.cpp Fri Jul 3 13:41:10 2009
@@ -241,6 +241,7 @@

settings.beginGroup("MainWindow");
resize(settings.value("Size", QSize(680,420)).toSize());
+ move(settings.value("Position", QPoint(200,200)).toPoint());
settings.endGroup();

settings.beginGroup("PersonalItems");
@@ -260,6 +261,7 @@

settings.beginGroup("MainWindow");
settings.setValue("Size", size());
+ settings.setValue("Position", pos());
settings.endGroup();

settings.beginGroup( "PersonalItems" );

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages