[PC-BSD Commits] r13509 - pcbsd/current/src-qt4/pc-servicemanager

svn at pcbsd.org svn at pcbsd.org
Wed Oct 26 10:03:29 PDT 2011


Author: kris
Date: 2011-10-26 10:03:29 -0700 (Wed, 26 Oct 2011)
New Revision: 13509

Modified:
   pcbsd/current/src-qt4/pc-servicemanager/servicemanager.cpp
   pcbsd/current/src-qt4/pc-servicemanager/servicemanager.ui
Log:

Sort the services at startup, and enable sorting via the headers




Modified: pcbsd/current/src-qt4/pc-servicemanager/servicemanager.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-servicemanager/servicemanager.cpp	2011-10-26 16:32:40 UTC (rev 13508)
+++ pcbsd/current/src-qt4/pc-servicemanager/servicemanager.cpp	2011-10-26 17:03:29 UTC (rev 13509)
@@ -327,6 +327,8 @@
           }
  	}   
 
+	listServices->sortItems(2, Qt::AscendingOrder);
+
 }
 
 

Modified: pcbsd/current/src-qt4/pc-servicemanager/servicemanager.ui
===================================================================
--- pcbsd/current/src-qt4/pc-servicemanager/servicemanager.ui	2011-10-26 16:32:40 UTC (rev 13508)
+++ pcbsd/current/src-qt4/pc-servicemanager/servicemanager.ui	2011-10-26 17:03:29 UTC (rev 13509)
@@ -63,15 +63,15 @@
         <property name="uniformRowHeights">
          <bool>false</bool>
         </property>
+        <property name="sortingEnabled">
+         <bool>true</bool>
+        </property>
         <property name="allColumnsShowFocus">
          <bool>true</bool>
         </property>
         <attribute name="headerDefaultSectionSize">
          <number>150</number>
         </attribute>
-        <attribute name="headerDefaultSectionSize">
-         <number>150</number>
-        </attribute>
         <column>
          <property name="text">
           <string>SDIR</string>



More information about the Commits mailing list