diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-06 11:39:17 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-07 18:28:28 +0900 |
commit | cfee7c430dfa8778709343b7809f2fc4e24ef914 (patch) | |
tree | 1ca1ffe7829434c39f16dd8749399da58e395e15 /kolourpaint/tools | |
parent | dd79abfcab681a26a70756c8847f870e73bcdf2c (diff) | |
download | tdegraphics-cfee7c430dfa8778709343b7809f2fc4e24ef914.tar.gz tdegraphics-cfee7c430dfa8778709343b7809f2fc4e24ef914.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit b93a9330d8b06f081d4ea3d2d48cdba2b6b2ce46)
Diffstat (limited to 'kolourpaint/tools')
-rw-r--r-- | kolourpaint/tools/kptoolpolygon.cpp | 22 | ||||
-rw-r--r-- | kolourpaint/tools/kptoolpolygon.h | 4 | ||||
-rw-r--r-- | kolourpaint/tools/kptoolrectangle.cpp | 8 |
3 files changed, 17 insertions, 17 deletions
diff --git a/kolourpaint/tools/kptoolpolygon.cpp b/kolourpaint/tools/kptoolpolygon.cpp index 00a70b02..f71ff6f8 100644 --- a/kolourpaint/tools/kptoolpolygon.cpp +++ b/kolourpaint/tools/kptoolpolygon.cpp @@ -79,23 +79,23 @@ static const char *pointArrayToString (const TQPointArray &pointArray) #endif -static TQPen makeMaskPen (const kpColor &color, int lineWidth, Qt::PenStyle lineStyle) +static TQPen makeMaskPen (const kpColor &color, int lineWidth, TQt::PenStyle lineStyle) { return TQPen (color.maskColor (), lineWidth == 1 ? 0/*closer to looking width 1*/ : lineWidth, lineStyle, - Qt::RoundCap, Qt::RoundJoin); + TQt::RoundCap, TQt::RoundJoin); } -static TQPen makePen (const kpColor &color, int lineWidth, Qt::PenStyle lineStyle) +static TQPen makePen (const kpColor &color, int lineWidth, TQt::PenStyle lineStyle) { if (color.isOpaque ()) { return TQPen (color.toTQColor (), lineWidth == 1 ? 0/*closer to looking width 1*/ : lineWidth, lineStyle, - Qt::RoundCap, Qt::RoundJoin); + TQt::RoundCap, TQt::RoundJoin); } else - return Qt::NoPen; + return TQt::NoPen; } static TQBrush makeMaskBrush (const kpColor &foregroundColor, @@ -105,7 +105,7 @@ static TQBrush makeMaskBrush (const kpColor &foregroundColor, if (toolWidgetFillStyle) return toolWidgetFillStyle->maskBrush (foregroundColor, backgroundColor); else - return Qt::NoBrush; + return TQt::NoBrush; } static TQBrush makeBrush (const kpColor &foregroundColor, @@ -115,7 +115,7 @@ static TQBrush makeBrush (const kpColor &foregroundColor, if (toolWidgetFillStyle) return toolWidgetFillStyle->brush (foregroundColor, backgroundColor); else - return Qt::NoBrush; + return TQt::NoBrush; } static bool only1PixelInPointArray (const TQPointArray &points) @@ -135,7 +135,7 @@ static bool only1PixelInPointArray (const TQPointArray &points) static TQPixmap pixmap (const TQPixmap &oldPixmap, const TQPointArray &points, const TQRect &rect, const kpColor &foregroundColor, kpColor backgroundColor, - int lineWidth, Qt::PenStyle lineStyle, + int lineWidth, TQt::PenStyle lineStyle, kpToolWidgetFillStyle *toolWidgetFillStyle, enum kpToolPolygon::Mode mode, bool final = true) { @@ -652,7 +652,7 @@ void kpToolPolygon::updateShape () TQPixmap newPixmap = pixmap (oldPixmap, m_points, boundingRect, color (m_mouseButton), color (1 - m_mouseButton), - m_lineWidth, Qt::SolidLine, + m_lineWidth, TQt::SolidLine, m_toolWidgetFillStyle, m_mode, false/*not final*/); @@ -790,7 +790,7 @@ void kpToolPolygon::endShape (const TQPoint &, const TQRect &) (text (), m_points, boundingRect, color (m_mouseButton), color (1 - m_mouseButton), - m_lineWidth, Qt::SolidLine, + m_lineWidth, TQt::SolidLine, m_toolWidgetFillStyle, document ()->getPixmapAt (boundingRect), m_mode, @@ -844,7 +844,7 @@ kpToolPolygonCommand::kpToolPolygonCommand (const TQString &name, const TQPointArray &points, const TQRect &normalizedRect, const kpColor &foregroundColor, const kpColor &backgroundColor, - int lineWidth, Qt::PenStyle lineStyle, + int lineWidth, TQt::PenStyle lineStyle, kpToolWidgetFillStyle *toolWidgetFillStyle, const TQPixmap &originalArea, enum kpToolPolygon::Mode mode, diff --git a/kolourpaint/tools/kptoolpolygon.h b/kolourpaint/tools/kptoolpolygon.h index 1bd922ab..e6178025 100644 --- a/kolourpaint/tools/kptoolpolygon.h +++ b/kolourpaint/tools/kptoolpolygon.h @@ -130,7 +130,7 @@ public: const TQPointArray &points, const TQRect &normalizedRect, const kpColor &foregroundColor, const kpColor &backgroundColor, - int lineWidth, Qt::PenStyle lineStyle, + int lineWidth, TQt::PenStyle lineStyle, kpToolWidgetFillStyle *toolWidgetFillStyle, const TQPixmap &originalArea, kpToolPolygon::Mode mode, @@ -148,7 +148,7 @@ private: kpColor m_foregroundColor, m_backgroundColor; int m_lineWidth; - Qt::PenStyle m_lineStyle; + TQt::PenStyle m_lineStyle; kpToolWidgetFillStyle *m_toolWidgetFillStyle; TQPixmap m_originalArea; diff --git a/kolourpaint/tools/kptoolrectangle.cpp b/kolourpaint/tools/kptoolrectangle.cpp index 9e5883ea..90a7352d 100644 --- a/kolourpaint/tools/kptoolrectangle.cpp +++ b/kolourpaint/tools/kptoolrectangle.cpp @@ -238,7 +238,7 @@ void kpToolRectangle::updatePen (int mouseButton) if (color (mouseButton).isOpaque ()) m_pen [mouseButton] = TQPen (color (mouseButton).toTQColor ()); else - m_pen [mouseButton] = TQPen(Qt::NoPen); + m_pen [mouseButton] = TQPen(TQt::NoPen); m_maskPen [mouseButton] = TQPen (maskPenColor); } else @@ -250,7 +250,7 @@ void kpToolRectangle::updatePen (int mouseButton) TQt::SolidLine); } else - m_pen [mouseButton] = TQPen(Qt::NoPen); + m_pen [mouseButton] = TQPen(TQt::NoPen); m_maskPen [mouseButton] = TQPen (maskPenColor, m_toolWidgetLineWidth->lineWidth (), TQt::SolidLine); @@ -276,8 +276,8 @@ void kpToolRectangle::updateBrush (int mouseButton) } else { - m_brush [mouseButton] = TQBrush(Qt::NoBrush); - m_maskBrush [mouseButton] = TQBrush(Qt::NoBrush); + m_brush [mouseButton] = TQBrush(TQt::NoBrush); + m_maskBrush [mouseButton] = TQBrush(TQt::NoBrush); } } |