[PC-BSD Commits] r1914 - pcbsd/trunk/PCInstall

svn at pcbsd.org svn at pcbsd.org
Mon May 19 08:36:40 PDT 2008


Author: kris
Date: 2008-05-19 08:36:39 -0700 (Mon, 19 May 2008)
New Revision: 1914

Modified:
   pcbsd/trunk/PCInstall/PCInstall.pro
   pcbsd/trunk/PCInstall/main.cpp
Log:

First change to PCInstall, using Kapplication now to try and enable themes 
properly



Modified: pcbsd/trunk/PCInstall/PCInstall.pro
===================================================================
--- pcbsd/trunk/PCInstall/PCInstall.pro	2008-05-19 13:50:18 UTC (rev 1913)
+++ pcbsd/trunk/PCInstall/PCInstall.pro	2008-05-19 15:36:39 UTC (rev 1914)
@@ -9,6 +9,8 @@
 	addpartitiondialog.ui \
 	background.ui
 
+LIBS	+= -lkdecore -Ikdelibs
+
 IMAGES	= keyboard.png \
 	locale.png \
 	kdisknav.png \

Modified: pcbsd/trunk/PCInstall/main.cpp
===================================================================
--- pcbsd/trunk/PCInstall/main.cpp	2008-05-19 13:50:18 UTC (rev 1913)
+++ pcbsd/trunk/PCInstall/main.cpp	2008-05-19 15:36:39 UTC (rev 1914)
@@ -3,16 +3,28 @@
 #include <qfile.h>
 #include <qfont.h>
 #include <qtranslator.h>
+#include <qtextcodec.h>
+#include <kapplication.h>
+#include <kcmdlineargs.h>
 #include <qmessagebox.h>
 #include "pcinstall.h"
 #include "background.h"
-#include "global.h"
 
 int main( int argc, char ** argv )
 {
-    
-    QApplication a( argc, argv );
+    //QApplication a( argc, argv );
+KCmdLineArgs::init(argc, argv, "PCInstall", "PCInstall", "PCInstall", "1.0");
 
+
+ static KCmdLineOptions options[] =
+ {
+    { "", "Start the configuration", 0 },
+    KCmdLineLastOption
+ };
+
+
+    KApplication a;
+
     QString nlang;
 
         // Check if we need to load a new language
@@ -60,7 +72,7 @@
 
     w.setGeometry((wid/2) - (896/2), (hig/2) - (680/2), 896, 680);
     
-    qApp = &a;
+    //qApp = &a;
     w.ProgramInit(); 
     w.setStyle(QStyleFactory::create( "Lipstik" ));
     //b.showFullScreen();



More information about the Commits mailing list