[PC-BSD Commits] r5620 - pcbsd/trunk/SysInstaller

svn at pcbsd.org svn at pcbsd.org
Tue Dec 15 06:52:01 PST 2009


Author: kris
Date: 2009-12-15 06:52:01 -0800 (Tue, 15 Dec 2009)
New Revision: 5620

Modified:
   pcbsd/trunk/SysInstaller/sys-componentwidget.cpp
Log:

Updated how we display component icons, which should fix the wrong icon being show for a component



Modified: pcbsd/trunk/SysInstaller/sys-componentwidget.cpp
===================================================================
--- pcbsd/trunk/SysInstaller/sys-componentwidget.cpp	2009-12-15 14:13:00 UTC (rev 5619)
+++ pcbsd/trunk/SysInstaller/sys-componentwidget.cpp	2009-12-15 14:52:01 UTC (rev 5620)
@@ -13,18 +13,16 @@
 void SysInstaller::refreshComponents()
 {
   QString name;
-  QIcon cIcon;
 
   listAvailComponents->clear();
   listSelComponents->clear();
 
   for ( int i=0; i<listComponents.count(); ++i) {
-     cIcon.addFile(listComponents.at(i).at(2));
      name = listComponents.at(i).at(1) + " - (" + listComponents.at(i).at(0) + ")";
      if ( listComponents.at(i).at(3) == "off" )
-       new QListWidgetItem(cIcon, name, listAvailComponents);
+       new QListWidgetItem(QIcon(listComponents.at(i).at(2)), name, listAvailComponents);
      else 
-       new QListWidgetItem(cIcon, name, listSelComponents);
+       new QListWidgetItem(QIcon(listComponents.at(i).at(2)), name, listSelComponents);
   }
 
 }



More information about the Commits mailing list