[PC-BSD Commits] r762 - pcbsd/trunk/XGUISource

svn at pcbsd.org svn at pcbsd.org
Thu Sep 20 21:46:22 PDT 2007


Author: kris
Date: 2007-09-20 21:46:22 -0700 (Thu, 20 Sep 2007)
New Revision: 762

Modified:
   pcbsd/trunk/XGUISource/xgui.ui.h
Log:

Default the XGUI to to 1024x768 in combo box at first. 



Modified: pcbsd/trunk/XGUISource/xgui.ui.h
===================================================================
--- pcbsd/trunk/XGUISource/xgui.ui.h	2007-09-21 04:43:17 UTC (rev 761)
+++ pcbsd/trunk/XGUISource/xgui.ui.h	2007-09-21 04:46:22 UTC (rev 762)
@@ -37,6 +37,7 @@
 void XGUI::loadResolutions()
 {
     QString line;
+    int i=0;
     
     comboResolution->clear();
 
@@ -46,6 +47,11 @@
              while ( !stream.atEnd() ) {
                line = stream.readLine(); // line of text excluding '\n'
                comboResolution->insertItem(line);	    
+               if (line == "1024x768" )
+               {
+			comboResolution->setCurrentItem(i);
+               }
+          i++;
 	}
 	file.close();
     }



More information about the Commits mailing list