diff widgets/PropertyStack.cpp @ 289:4ca7562dd246

* Add icon loader that automatically inverts icons where appropriate for (slightly) better display on a dark background
author Chris Cannam
date Fri, 13 Jul 2007 13:19:15 +0000
parents e6d0b097d102
children 226cb289bdf4
line wrap: on
line diff
--- a/widgets/PropertyStack.cpp	Thu Jul 12 21:10:43 2007 +0000
+++ b/widgets/PropertyStack.cpp	Fri Jul 13 13:19:15 2007 +0000
@@ -20,6 +20,7 @@
 #include "layer/Layer.h"
 #include "layer/LayerFactory.h"
 #include "widgets/NotifyingTabBar.h"
+#include "widgets/IconLoader.h"
 
 #include <QIcon>
 #include <QTabWidget>
@@ -126,7 +127,7 @@
 
 	QString iconName = container->getPropertyContainerIconName();
 
-	QIcon icon(QString(":/icons/%1.png").arg(iconName));
+        QIcon icon(IconLoader().load(iconName));
 	if (icon.isNull()) {
 	    addTab(box, shortName);
 	} else {