summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/Fader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/Fader.cpp')
-rw-r--r--src/gui/widgets/Fader.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/gui/widgets/Fader.cpp b/src/gui/widgets/Fader.cpp
index 022f0ca..915cf6e 100644
--- a/src/gui/widgets/Fader.cpp
+++ b/src/gui/widgets/Fader.cpp
@@ -73,7 +73,7 @@ Fader::Fader(AudioLevel::FaderType type,
m_sliderMax = width() - m_sliderMin;
}
- m_outlineColour = tqcolorGroup().mid();
+ m_outlineColour = colorGroup().mid();
calculateGroovePixmap();
setFader(0.0);
@@ -110,7 +110,7 @@ Fader::Fader(int min, int max, int deflt,
m_sliderMax = width() - m_sliderMin;
}
- m_outlineColour = tqcolorGroup().mid();
+ m_outlineColour = colorGroup().mid();
calculateGroovePixmap();
setFader(deflt);
@@ -141,7 +141,7 @@ Fader::Fader(int min, int max, int deflt,
m_sliderMax = width() - m_sliderMin;
}
- m_outlineColour = tqcolorGroup().mid();
+ m_outlineColour = colorGroup().mid();
calculateGroovePixmap();
setFader(deflt);
@@ -447,9 +447,9 @@ Fader::calculateGroovePixmap()
delete map;
map = new TQPixmap(width(), height());
- map->fill(tqcolorGroup().background());
+ map->fill(colorGroup().background());
TQPainter paint(map);
- paint.setBrush(tqcolorGroup().background());
+ paint.setBrush(colorGroup().background());
if (m_vertical) {
@@ -464,9 +464,9 @@ Fader::calculateGroovePixmap()
if (position >= 0 &&
position < m_sliderMax - m_sliderMin) {
if (dB == 0)
- paint.setPen(tqcolorGroup().dark());
+ paint.setPen(colorGroup().dark());
else
- paint.setPen(tqcolorGroup().midlight());
+ paint.setPen(colorGroup().midlight());
paint.drawLine(1, (m_sliderMax - position),
width() - 2, (m_sliderMax - position));
}
@@ -477,8 +477,8 @@ Fader::calculateGroovePixmap()
}
}
- paint.setPen(tqcolorGroup().dark());
- paint.setBrush(tqcolorGroup().mid());
+ paint.setPen(colorGroup().dark());
+ paint.setBrush(colorGroup().mid());
paint.drawRect(width() / 2 - 3, height() - m_sliderMax,
6, m_sliderMax - m_sliderMin);
paint.end();
@@ -511,48 +511,48 @@ Fader::calculateButtonPixmap()
buttonWidth = width() - 2;
map = new TQPixmap(buttonWidth, buttonHeight);
- map->fill(tqcolorGroup().background());
+ map->fill(colorGroup().background());
int x = 0;
int y = 0;
TQPainter paint(map);
- paint.setPen(tqcolorGroup().light());
+ paint.setPen(colorGroup().light());
paint.drawLine(x + 1, y, x + buttonWidth - 2, y);
paint.drawLine(x, y + 1, x, y + buttonHeight - 2);
- paint.setPen(tqcolorGroup().midlight());
+ paint.setPen(colorGroup().midlight());
paint.drawLine(x + 1, y + 1, x + buttonWidth - 2, y + 1);
paint.drawLine(x + 1, y + 1, x + 1, y + buttonHeight - 2);
- paint.setPen(tqcolorGroup().mid());
+ paint.setPen(colorGroup().mid());
paint.drawLine(x + 2, y + buttonHeight - 2, x + buttonWidth - 2,
y + buttonHeight - 2);
paint.drawLine(x + buttonWidth - 2, y + 2, x + buttonWidth - 2,
y + buttonHeight - 2);
- paint.setPen(tqcolorGroup().dark());
+ paint.setPen(colorGroup().dark());
paint.drawLine(x + 1, y + buttonHeight - 1, x + buttonWidth - 2,
y + buttonHeight - 1);
paint.drawLine(x + buttonWidth - 1, y + 1, x + buttonWidth - 1,
y + buttonHeight - 2);
- paint.setPen(tqcolorGroup().shadow());
+ paint.setPen(colorGroup().shadow());
paint.drawLine(x + 1, y + buttonHeight / 2, x + buttonWidth - 2,
y + buttonHeight / 2);
- paint.setPen(tqcolorGroup().mid());
+ paint.setPen(colorGroup().mid());
paint.drawLine(x + 1, y + buttonHeight / 2 - 1, x + buttonWidth - 2,
y + buttonHeight / 2 - 1);
paint.drawPoint(x, y + buttonHeight / 2);
- paint.setPen(tqcolorGroup().light());
+ paint.setPen(colorGroup().light());
paint.drawLine(x + 1, y + buttonHeight / 2 + 1, x + buttonWidth - 2,
y + buttonHeight / 2 + 1);
- paint.setPen(tqcolorGroup().button());
- paint.setBrush(tqcolorGroup().button());
+ paint.setPen(colorGroup().button());
+ paint.setBrush(colorGroup().button());
paint.drawRect(x + 2, y + 2, buttonWidth - 4, buttonHeight / 2 - 4);
paint.drawRect(x + 2, y + buttonHeight / 2 + 2,
buttonWidth - 4, buttonHeight / 2 - 4);