[PC-BSD Commits] r2211 - pcbsd/trunk/PBReg

svn at pcbsd.org svn at pcbsd.org
Mon Jun 30 11:05:28 PDT 2008


Author: kris
Date: 2008-06-30 11:05:24 -0700 (Mon, 30 Jun 2008)
New Revision: 2211

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

Updated PBReg to use QCore application instead for QT4, since it is command
line based



Modified: pcbsd/trunk/PBReg/PBReg.pro
===================================================================
--- pcbsd/trunk/PBReg/PBReg.pro	2008-06-30 17:56:46 UTC (rev 2210)
+++ pcbsd/trunk/PBReg/PBReg.pro	2008-06-30 18:05:24 UTC (rev 2211)
@@ -5,9 +5,6 @@
 TARGET  = PBReg
 DESTDIR = /PCBSD/bin/
 
-
-HEADERS	+= PBRegFuncs.h
-
 SOURCES	+= main.cpp
 
 FORMS	= pbreg.ui

Modified: pcbsd/trunk/PBReg/main.cpp
===================================================================
--- pcbsd/trunk/PBReg/main.cpp	2008-06-30 17:56:46 UTC (rev 2210)
+++ pcbsd/trunk/PBReg/main.cpp	2008-06-30 18:05:24 UTC (rev 2211)
@@ -1,5 +1,5 @@
 #include <iostream>
-#include <qapplication.h>
+#include <qcoreapplication.h>
 #include <qstring.h>
 #include <qsettings.h>
 
@@ -10,14 +10,14 @@
 int save_setting(QString key, QString value);
 bool removeSetting(QString key);
 
-QSettings settings;
+QSettings settings("PCBSD");
 
 // Where to open the reg files
 //QString SettingsFile="/PCBSD/conf/Registry";
 
 int main( int argc, char ** argv )
 {
-    QApplication a( argc, argv, FALSE );
+    QCoreApplication a( argc, argv);
 
     QString Tmp = a.argv()[1];
   



More information about the Commits mailing list