Replaced various '#define' with actual strings - part 3

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 60716f5af0)
r14.1.x
Michele Calgaro 12 months ago
parent 73368709a2
commit 57ade68197
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -784,7 +784,7 @@ TQPixmap kpSelection::transparentForegroundTextPixmap () const
// we can identify the transparent pixels for manually creating
// the mask.
pixmapPainter.setPen (
TQColor (mostContrastingRGB (m_textStyle.effectiveBackgroundColor ().toTQRgb () & TQRGB_MASK)));
TQColor (mostContrastingRGB (m_textStyle.effectiveBackgroundColor ().toTQRgb () & TQT_RGB_MASK)));
pixmapPainter.setFont (font);

@ -353,8 +353,8 @@ diff -u -p -r1.7 kpviewscrollablecontainer.cpp
+ }
+#endif
+
updateResizeLines (QMAX (1, TQMAX (m_view->width () + viewDX, m_view->zoomDocToViewX (1))),
QMAX (1, TQMAX (m_view->height () + viewDY, m_view->zoomDocToViewY (1))),
updateResizeLines (TQMAX (1, TQMAX (m_view->width () + viewDX, m_view->zoomDocToViewX (1))),
TQMAX (1, TQMAX (m_view->height () + viewDY, m_view->zoomDocToViewY (1))),
viewDX, viewDY);
emit continuedDocResize (newDocSize ());

@ -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

@ -188,7 +188,7 @@ TQPair <int, int> kpToolWidgetBase::defaultSelectedRowAndCol () const
<< endl;
#endif
return tqMakePair (row, col);
return qMakePair (row, col);
}
// public

@ -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
}
}

@ -337,7 +337,7 @@ void PMDockWidgetHeaderDrag::paintEvent( TQPaintEvent* )
paint.begin( this );
style().tqdrawPrimitive (TQStyle::PE_DockWindowHandle, &paint, TQRect(0,0,width(), height()), colorGroup());
style().drawPrimitive (TQStyle::PE_DockWindowHandle, &paint, TQRect(0,0,width(), height()), colorGroup());
paint.end();
}

@ -45,14 +45,14 @@ class KSnapshotPreview : public TQLabel
{
TQPainter p(&mask);
style().tqdrawPrimitive(TQStyle::PE_SizeGrip, &p, TQRect(0, 0, 15, 15), palette().active());
style().drawPrimitive(TQStyle::PE_SizeGrip, &p, TQRect(0, 0, 15, 15), palette().active());
p.end();
handle.setMask(mask);
}
{
TQPainter p(&handle);
style().tqdrawPrimitive(TQStyle::PE_SizeGrip, &p, TQRect(0, 0, 15, 15), palette().active());
style().drawPrimitive(TQStyle::PE_SizeGrip, &p, TQRect(0, 0, 15, 15), palette().active());
p.end();
}

@ -168,7 +168,7 @@ void RegionGrabber::drawRubber()
p.setPen( TQPen( color0, 1 ) );
p.setBrush( NoBrush );
style().tqdrawPrimitive( TQStyle::PE_FocusRect, &p, grabRect, colorGroup(),
style().drawPrimitive( TQStyle::PE_FocusRect, &p, grabRect, colorGroup(),
TQStyle::Style_Default, TQStyleOption( colorGroup().base() ) );
p.end();

Loading…
Cancel
Save