[PC-BSD Commits] r715 - pcbsd/trunk/XGUISource
svn at pcbsd.org
svn at pcbsd.org
Thu Sep 13 08:40:01 PDT 2007
Author: kris
Date: 2007-09-13 08:40:00 -0700 (Thu, 13 Sep 2007)
New Revision: 715
Modified:
pcbsd/trunk/XGUISource/main.cpp
Log:
Updated the window dimensions of the XGUI program so its centered closer to
the middle now
Modified: pcbsd/trunk/XGUISource/main.cpp
===================================================================
--- pcbsd/trunk/XGUISource/main.cpp 2007-09-13 03:23:42 UTC (rev 714)
+++ pcbsd/trunk/XGUISource/main.cpp 2007-09-13 15:40:00 UTC (rev 715)
@@ -54,14 +54,15 @@
a.installTranslator( &translator );
XGUI w;
- w.ProgramInit();
QDesktopWidget *desk = QApplication::desktop();
int wid = desk->width(); // returns desktop width
int hig = desk->height(); // returns desktop height
+ w.setGeometry((wid/2) - (564/2), (hig/2) - (461/2), 564, 461);
- w.setGeometry((wid/2) - (400/2), (hig/2) - (200/2), 400, 200);
+ w.ProgramInit();
+
w.setStyle(QStyleFactory::create( "Plastik" ));
w.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
More information about the Commits
mailing list