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

svn at pcbsd.org svn at pcbsd.org
Tue Jun 17 09:06:31 PDT 2008


Author: kris
Date: 2008-06-17 09:06:28 -0700 (Tue, 17 Jun 2008)
New Revision: 2108

Removed:
   pcbsd/trunk/PBReg/PBRegFuncs.h
   pcbsd/trunk/PBReg/compile
Modified:
   pcbsd/trunk/PBReg/PBReg.pro
   pcbsd/trunk/PBReg/main.cpp
   pcbsd/trunk/PBReg/pbreg.ui
Log:

Updated PBReg tool to QT4



Modified: pcbsd/trunk/PBReg/PBReg.pro
===================================================================
--- pcbsd/trunk/PBReg/PBReg.pro	2008-06-17 15:53:21 UTC (rev 2107)
+++ pcbsd/trunk/PBReg/PBReg.pro	2008-06-17 16:06:28 UTC (rev 2108)
@@ -12,10 +12,4 @@
 
 FORMS	= pbreg.ui
 
-unix {
-  UI_DIR = .ui
-  MOC_DIR = .moc
-  OBJECTS_DIR = .obj
-}
-
-
+QT +=qt3support

Deleted: pcbsd/trunk/PBReg/PBRegFuncs.h

Deleted: pcbsd/trunk/PBReg/compile

Modified: pcbsd/trunk/PBReg/main.cpp
===================================================================
--- pcbsd/trunk/PBReg/main.cpp	2008-06-17 15:53:21 UTC (rev 2107)
+++ pcbsd/trunk/PBReg/main.cpp	2008-06-17 16:06:28 UTC (rev 2108)
@@ -2,7 +2,6 @@
 #include <qapplication.h>
 #include <qstring.h>
 #include <qsettings.h>
-#include "pbreg.h"
 
 using namespace std;
 
@@ -51,14 +50,12 @@
  QString value;
  bool check = TRUE;
 
- //settings.insertSearchPath( QSettings::Unix, SettingsFile );
- //settings.removeSearchPath(QSettings::Unix, "/usr/X11R6/etc/settings");
  
  value = settings.readEntry(key, value, &check);
  
  if ( check)
  {
-   cout << value;
+   cout << value.toStdString();
  } else  {
    return 1;
  }
@@ -72,8 +69,6 @@
 {
  bool check = TRUE;
 
- //settings.insertSearchPath( QSettings::Unix, SettingsFile );
- //settings.removeSearchPath(QSettings::Unix, "/usr/X11R6/etc/settings");
 
  check = settings.writeEntry(key, value );
 

Modified: pcbsd/trunk/PBReg/pbreg.ui
===================================================================
--- pcbsd/trunk/PBReg/pbreg.ui	2008-06-17 15:53:21 UTC (rev 2107)
+++ pcbsd/trunk/PBReg/pbreg.ui	2008-06-17 16:06:28 UTC (rev 2108)
@@ -1,21 +1,21 @@
-<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
-<class>PBReg</class>
-<widget class="QDialog">
-    <property name="name">
-        <cstring>PBReg</cstring>
+<ui version="4.0" stdsetdef="1" >
+  <author></author>
+  <comment></comment>
+  <exportmacro></exportmacro>
+  <class>PBReg</class>
+  <widget class="QDialog" name="PBReg" >
+    <property name="geometry" >
+      <rect>
+        <x>0</x>
+        <y>0</y>
+        <width>600</width>
+        <height>480</height>
+      </rect>
     </property>
-    <property name="geometry">
-        <rect>
-            <x>0</x>
-            <y>0</y>
-            <width>600</width>
-            <height>480</height>
-        </rect>
+    <property name="windowTitle" >
+      <string>PC-BSD Registry</string>
     </property>
-    <property name="caption">
-        <string>PC-BSD Registry</string>
-    </property>
-</widget>
-<pixmapinproject/>
-<layoutdefaults spacing="6" margin="11"/>
-</UI>
+  </widget>
+  <layoutdefault spacing="6" margin="11" />
+  <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
+</ui>



More information about the Commits mailing list