summaryrefslogtreecommitdiffstats
path: root/kolourpaint/widgets
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-24 10:55:50 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-24 10:55:50 +0900
commit60716f5af0920804783f44ca88664dcd403e4041 (patch)
treeafc69b2f97e30fba156d2ba28f77aa2e6d4c9e20 /kolourpaint/widgets
parent9f573969bb9c14598cb640d7f769f4d7811c4414 (diff)
downloadtdegraphics-60716f5af0920804783f44ca88664dcd403e4041.tar.gz
tdegraphics-60716f5af0920804783f44ca88664dcd403e4041.zip
Replaced various '#define' with actual strings - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kolourpaint/widgets')
-rw-r--r--kolourpaint/widgets/kpcolorsimilaritycube.cpp4
-rw-r--r--kolourpaint/widgets/kptoolwidgetbase.cpp2
-rw-r--r--kolourpaint/widgets/kptoolwidgetspraycansize.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/kolourpaint/widgets/kpcolorsimilaritycube.cpp b/kolourpaint/widgets/kpcolorsimilaritycube.cpp
index 60299475..8dcf7398 100644
--- a/kolourpaint/widgets/kpcolorsimilaritycube.cpp
+++ b/kolourpaint/widgets/kpcolorsimilaritycube.cpp
@@ -256,8 +256,8 @@ void kpColorSimilarityCube::drawFace (TQPainter *p,
<< " colorCubeDiagDist=" << kpColorSimilarityCube::colorCubeDiagonalDistance
<< endl
<< "\tbaseBrightness=" << baseBrightness
- << " color[0]=" << ((colors [0].rgb () & TQRGB_MASK) >> ((2 - redOrGreenOrBlue) * 8))
- << " color[1]=" << ((colors [1].rgb () & TQRGB_MASK) >> ((2 - redOrGreenOrBlue) * 8))
+ << " color[0]=" << ((colors [0].rgb () & TQT_RGB_MASK) >> ((2 - redOrGreenOrBlue) * 8))
+ << " color[1]=" << ((colors [1].rgb () & TQT_RGB_MASK) >> ((2 - redOrGreenOrBlue) * 8))
<< endl;
#endif
diff --git a/kolourpaint/widgets/kptoolwidgetbase.cpp b/kolourpaint/widgets/kptoolwidgetbase.cpp
index bb74cafc..25761856 100644
--- a/kolourpaint/widgets/kptoolwidgetbase.cpp
+++ b/kolourpaint/widgets/kptoolwidgetbase.cpp
@@ -188,7 +188,7 @@ TQPair <int, int> kpToolWidgetBase::defaultSelectedRowAndCol () const
<< endl;
#endif
- return tqMakePair (row, col);
+ return qMakePair (row, col);
}
// public
diff --git a/kolourpaint/widgets/kptoolwidgetspraycansize.cpp b/kolourpaint/widgets/kptoolwidgetspraycansize.cpp
index d435c72b..d14942e4 100644
--- a/kolourpaint/widgets/kptoolwidgetspraycansize.cpp
+++ b/kolourpaint/widgets/kptoolwidgetspraycansize.cpp
@@ -79,7 +79,7 @@ kpToolWidgetSpraycanSize::kpToolWidgetSpraycanSize (TQWidget *parent, const char
{
for (int x = 0; x < image.width (); x++)
{
- if ((image.pixel (x, y) & TQRGB_MASK) == 0/*black*/)
+ if ((image.pixel (x, y) & TQT_RGB_MASK) == 0/*black*/)
painter.drawPoint (x, y); // mark as opaque
}
}