comparison 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
comparison
equal deleted inserted replaced
386:e6d11871e4c9 387:7aa1de571880
49 49
50 return s; 50 return s;
51 } 51 }
52 52
53 QString 53 QString
54 XmlExportable::encodeColour(QColor c) 54 XmlExportable::encodeColour(int ri, int gi, int bi)
55 { 55 {
56 QString r, g, b; 56 QString r, g, b;
57 57
58 r.setNum(c.red(), 16); 58 r.setNum(ri, 16);
59 if (c.red() < 16) r = "0" + r; 59 if (ri < 16) r = "0" + r;
60 60
61 g.setNum(c.green(), 16); 61 g.setNum(gi, 16);
62 if (c.green() < 16) g = "0" + g; 62 if (gi < 16) g = "0" + g;
63 63
64 b.setNum(c.blue(), 16); 64 b.setNum(bi, 16);
65 if (c.blue() < 16) b = "0" + b; 65 if (bi < 16) b = "0" + b;
66 66
67 return "#" + r + g + b; 67 return "#" + r + g + b;
68 } 68 }
69 69
70 int 70 int