summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/Rotary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/Rotary.cpp')
-rw-r--r--src/gui/widgets/Rotary.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/Rotary.cpp b/src/gui/widgets/Rotary.cpp
index c700e54..6327d4a 100644
--- a/src/gui/widgets/Rotary.cpp
+++ b/src/gui/widgets/Rotary.cpp
@@ -223,7 +223,7 @@ Rotary::paintEvent(TQPaintEvent *)
paint.setBrush(TQBrush::NoBrush);
- pen.setColor(tqcolorGroup().dark());
+ pen.setColor(colorGroup().dark());
pen.setWidth(scale);
paint.setPen(pen);
@@ -253,7 +253,7 @@ Rotary::paintEvent(TQPaintEvent *)
paint.setPen(pen);
int shadowAngle = -720;
- c = tqcolorGroup().dark();
+ c = colorGroup().dark();
for (int arc = 120; arc < 2880; arc += 240) {
pen.setColor(c);
paint.setPen(pen);
@@ -263,7 +263,7 @@ Rotary::paintEvent(TQPaintEvent *)
}
shadowAngle = 2160;
- c = tqcolorGroup().dark();
+ c = colorGroup().dark();
for (int arc = 120; arc < 2880; arc += 240) {
pen.setColor(c);
paint.setPen(pen);
@@ -289,7 +289,7 @@ Rotary::paintEvent(TQPaintEvent *)
double y = hyp + len * cos(angle);
pen.setWidth(scale * 2);
- pen.setColor(tqcolorGroup().dark());
+ pen.setColor(colorGroup().dark());
paint.setPen(pen);
paint.drawLine(int(x0), int(y0), int(x), int(y));
@@ -391,7 +391,7 @@ Rotary::mousePressEvent(TQMouseEvent *e)
emit valueChanged(m_snapPosition);
}
- TQPoint totalPos = mapTo(tqtopLevelWidget(), TQPoint(0, 0));
+ TQPoint totalPos = mapTo(topLevelWidget(), TQPoint(0, 0));
if (!_float)
_float = new TextFloat(this);
@@ -535,7 +535,7 @@ Rotary::wheelEvent(TQWheelEvent *e)
// Reposition - we need to sum the relative positions up to the
// topLevel or dialog to please move(). Move just top/right of the rotary
//
- TQPoint totalPos = mapTo(tqtopLevelWidget(), TQPoint(0, 0));
+ TQPoint totalPos = mapTo(topLevelWidget(), TQPoint(0, 0));
_float->reparent(this);
_float->move(totalPos + TQPoint(width() + 2, -height() / 2));
_float->show();