summaryrefslogtreecommitdiffstats
path: root/src/kcolorcombo2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kcolorcombo2.cpp')
-rw-r--r--src/kcolorcombo2.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kcolorcombo2.cpp b/src/kcolorcombo2.cpp
index e898e46..5db3178 100644
--- a/src/kcolorcombo2.cpp
+++ b/src/kcolorcombo2.cpp
@@ -520,22 +520,22 @@ TQPixmap KColorCombo2::colorRectPixmap(const TQColor &color, bool isDefault, int
TQPixmap pixmap(width, height);
TQBitmap tqmask(width, height);
TQPainter painter(&pixmap);
- TQPainter tqmaskPainter(&tqmask);
+ TQPainter maskPainter(&tqmask);
// Draw pixmap:
drawColorRect(painter, 0, 0, color, isDefault, width, height);
// Draw tqmask (make the four corners transparent):
- tqmaskPainter.fillRect(0, 0, width, height, TQt::color1); // opaque
- tqmaskPainter.setPen(TQt::color0); // transparent
- tqmaskPainter.drawPoint(0, 0);
- tqmaskPainter.drawPoint(0, height - 1);
- tqmaskPainter.drawPoint(width - 1, height - 1);
- tqmaskPainter.drawPoint(width - 1, 0);
+ maskPainter.fillRect(0, 0, width, height, TQt::color1); // opaque
+ maskPainter.setPen(TQt::color0); // transparent
+ maskPainter.drawPoint(0, 0);
+ maskPainter.drawPoint(0, height - 1);
+ maskPainter.drawPoint(width - 1, height - 1);
+ maskPainter.drawPoint(width - 1, 0);
// Finish:
painter.end();
- tqmaskPainter.end();
+ maskPainter.end();
pixmap.setMask(tqmask);
return pixmap;
}