comparison widgets/AudioDial.cpp @ 287:cd2492c5fe45

* Add SingleColourLayer to manage colours for layers that have a single predominant colour (i.e. most of them).
author Chris Cannam
date Thu, 12 Jul 2007 16:14:59 +0000
parents 8d89f8869cfb
children 832d246b327b
comparison
equal deleted inserted replaced
286:7554ae119882 287:cd2492c5fe45
125 int ns = notchSize(); 125 int ns = notchSize();
126 int numTicks = 1 + (maximum() + ns - minimum()) / ns; 126 int numTicks = 1 + (maximum() + ns - minimum()) / ns;
127 127
128 QColor knobColor(m_knobColor); 128 QColor knobColor(m_knobColor);
129 if (knobColor == Qt::black) 129 if (knobColor == Qt::black)
130 knobColor = palette().background().color(); 130 knobColor = palette().window().color();
131 131
132 QColor meterColor(m_meterColor); 132 QColor meterColor(m_meterColor);
133 if (!isEnabled()) 133 if (!isEnabled())
134 meterColor = palette().mid().color(); 134 meterColor = palette().mid().color();
135 else if (m_meterColor == Qt::white) 135 else if (m_meterColor == Qt::white)