diff base/XmlExportable.cpp @ 387:7aa1de571880

* juggle some files around in order to free audioio, base, and system libraries from dependency on QtGui
author Chris Cannam
date Wed, 12 Mar 2008 17:42:56 +0000
parents ca3b91119482
children 06f13a3b9e9e
line wrap: on
line diff
--- a/base/XmlExportable.cpp	Sat Mar 01 16:17:44 2008 +0000
+++ b/base/XmlExportable.cpp	Wed Mar 12 17:42:56 2008 +0000
@@ -51,18 +51,18 @@
 }
 
 QString
-XmlExportable::encodeColour(QColor c)
+XmlExportable::encodeColour(int ri, int gi, int bi)
 {
     QString r, g, b;
 
-    r.setNum(c.red(), 16);
-    if (c.red() < 16) r = "0" + r;
+    r.setNum(ri, 16);
+    if (ri < 16) r = "0" + r;
 
-    g.setNum(c.green(), 16);
-    if (c.green() < 16) g = "0" + g;
+    g.setNum(gi, 16);
+    if (gi < 16) g = "0" + g;
 
-    b.setNum(c.blue(), 16);
-    if (c.blue() < 16) b = "0" + b;
+    b.setNum(bi, 16);
+    if (bi < 16) b = "0" + b;
 
     return "#" + r + g + b;
 }