diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-06 11:38:51 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-07 11:19:13 +0900 |
commit | bcee6c3261309f13cf2ca0ad1d9ddc8ee5624d7a (patch) | |
tree | 0c81e36cc908785f3f54b84c01949715558c53e6 /kig/misc/kigpainter.cpp | |
parent | e25be387c170de2528fc2134604ffab9ac26a931 (diff) | |
download | tdeedu-bcee6c32.tar.gz tdeedu-bcee6c32.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c8e3d1d47df0efdc66fe6b96f8b1c78a2cb18ee6)
Diffstat (limited to 'kig/misc/kigpainter.cpp')
-rw-r--r-- | kig/misc/kigpainter.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kig/misc/kigpainter.cpp b/kig/misc/kigpainter.cpp index 4b3ede2e..cbaf57be 100644 --- a/kig/misc/kigpainter.cpp +++ b/kig/misc/kigpainter.cpp @@ -43,10 +43,10 @@ KigPainter::KigPainter( const ScreenInfo& si, TQPaintDevice* device, const KigDocument& doc, bool no ) : mP ( device ), color( TQt::blue ), - style( Qt::SolidLine ), + style( TQt::SolidLine ), pointstyle( 0 ), width( -1 ), - brushStyle( Qt::NoBrush ), + brushStyle( TQt::NoBrush ), brushColor( TQt::blue ), mdoc( doc ), msi( si ), @@ -101,7 +101,7 @@ void KigPainter::drawFatPoint( const Coordinate& p ) case 0: { double radius = twidth * pixelWidth(); - setBrushStyle( Qt::SolidPattern ); + setBrushStyle( TQt::SolidPattern ); Coordinate rad( radius, radius ); rad /= 2; Coordinate tl = p - rad; @@ -115,7 +115,7 @@ void KigPainter::drawFatPoint( const Coordinate& p ) case 1: { double radius = twidth * pixelWidth(); - setBrushStyle( Qt::NoBrush ); + setBrushStyle( TQt::NoBrush ); Coordinate rad( radius, radius ); rad /= 2; Coordinate tl = p - rad; @@ -218,7 +218,7 @@ void KigPainter::setColor( const TQColor& c ) mP.setPen( TQPen( color, width == -1 ? 1 : width, style ) ); } -void KigPainter::setStyle( const Qt::PenStyle c ) +void KigPainter::setStyle( const TQt::PenStyle c ) { style = c; mP.setPen( TQPen( color, width == -1 ? 1 : width, style ) ); @@ -251,7 +251,7 @@ void KigPainter::setBrush( const TQBrush& b ) mP.setBrush( b ); } -void KigPainter::setBrushStyle( const Qt::BrushStyle c ) +void KigPainter::setBrushStyle( const TQt::BrushStyle c ) { brushStyle = c; mP.setBrush( TQBrush( brushColor, brushStyle ) ); @@ -291,7 +291,7 @@ void KigPainter::drawPolygon( const std::vector<TQPoint>& pts, TQPen oldpen = mP.pen(); TQBrush oldbrush = mP.brush(); setBrush( TQBrush( color, Dense4Pattern ) ); - setPen( Qt::NoPen ); + setPen( TQt::NoPen ); // i know this isn't really fast, but i blame it all on TQt with its // stupid container classes... what's wrong with the STL ? TQPointArray t( pts.size() ); @@ -314,7 +314,7 @@ void KigPainter::drawArea( const std::vector<Coordinate>& pts, bool border ) if ( border ) setPen( TQPen( color, width == -1 ? 1 : width ) ); else - setPen( Qt::NoPen ); + setPen( TQt::NoPen ); TQPointArray t( pts.size() ); int c = 0; for( std::vector<Coordinate>::const_iterator i = pts.begin(); i != pts.end(); ++i ) @@ -512,7 +512,7 @@ void KigPainter::drawTextStd( const TQPoint& p, const TQString& s ) int tf = AlignLeft | AlignTop | DontClip | WordBreak; // we need the rect where we're going to paint text setPen(TQPen(TQt::blue, 1, SolidLine)); - setBrush(Qt::NoBrush); + setBrush(TQt::NoBrush); drawText( Rect( msi.fromScreen(p), window().bottomRight() ).normalized(), s, tf ); @@ -643,7 +643,7 @@ void KigPainter::drawAngle( const Coordinate& cpoint, const double dstartangle, // arrow.push_back( end + orthvect + vect ); // arrow.push_back( end + orthvect - vect ); - setBrushStyle( Qt::SolidPattern ); + setBrushStyle( TQt::SolidPattern ); // drawPolygon( arrow ); mP.drawPolygon( arrow, false, 0, -1 ); |