Mercurial > hg > svgui
comparison widgets/AudioDial.cpp @ 82:82482231b6b1
* Add file open/save operations to main toolbar
* Allow opening any sort of file from toolbar file open function
* First cut at on-disc cacheing for decoded mp3/ogg files
* Permit un-snapped selection by holding Shift
author | Chris Cannam |
---|---|
date | Thu, 27 Apr 2006 17:29:19 +0000 |
parents | 705f05ab42e3 |
children | 53b9c7656798 |
comparison
equal
deleted
inserted
replaced
81:b9f71b8ae21e | 82:82482231b6b1 |
---|---|
94 int ns = notchSize(); | 94 int ns = notchSize(); |
95 int numTicks = 1 + (maximum() + ns - minimum()) / ns; | 95 int numTicks = 1 + (maximum() + ns - minimum()) / ns; |
96 | 96 |
97 QColor knobColor(m_knobColor); | 97 QColor knobColor(m_knobColor); |
98 if (knobColor == Qt::black) | 98 if (knobColor == Qt::black) |
99 knobColor = palette().mid().color(); | 99 knobColor = palette().background().color(); |
100 | 100 |
101 QColor meterColor(m_meterColor); | 101 QColor meterColor(m_meterColor); |
102 if (!isEnabled()) | 102 if (!isEnabled()) |
103 meterColor = palette().mid().color(); | 103 meterColor = palette().mid().color(); |
104 else if (m_meterColor == Qt::white) | 104 else if (m_meterColor == Qt::white) |