diff options
author | Michele Calgaro <[email protected]> | 2023-11-06 11:38:51 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-07 11:19:13 +0900 |
commit | bcee6c3261309f13cf2ca0ad1d9ddc8ee5624d7a (patch) | |
tree | 0c81e36cc908785f3f54b84c01949715558c53e6 /kig/objects | |
parent | e25be387c170de2528fc2134604ffab9ac26a931 (diff) | |
download | tdeedu-bcee6c3261309f13cf2ca0ad1d9ddc8ee5624d7a.tar.gz tdeedu-bcee6c3261309f13cf2ca0ad1d9ddc8ee5624d7a.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit c8e3d1d47df0efdc66fe6b96f8b1c78a2cb18ee6)
Diffstat (limited to 'kig/objects')
-rw-r--r-- | kig/objects/object_drawer.cpp | 24 | ||||
-rw-r--r-- | kig/objects/object_drawer.h | 10 |
2 files changed, 17 insertions, 17 deletions
diff --git a/kig/objects/object_drawer.cpp b/kig/objects/object_drawer.cpp index d6e41144..f1541f66 100644 --- a/kig/objects/object_drawer.cpp +++ b/kig/objects/object_drawer.cpp @@ -31,7 +31,7 @@ void ObjectDrawer::draw( const ObjectImp& imp, KigPainter& p, bool sel ) const bool nv = p.getNightVision( ); if ( mshown || nv ) { - p.setBrushStyle( Qt::NoBrush ); + p.setBrushStyle( TQt::NoBrush ); p.setBrushColor( sel ? TQt::red : ( mshown?mcolor:TQt::gray ) ); p.setPen( TQPen ( sel ? TQt::red : ( mshown?mcolor:TQt::gray ), 1) ); p.setWidth( mwidth ); @@ -90,7 +90,7 @@ ObjectDrawer* ObjectDrawer::getCopyWidth( int w ) const return ret; } -ObjectDrawer* ObjectDrawer::getCopyStyle( Qt::PenStyle s ) const +ObjectDrawer* ObjectDrawer::getCopyStyle( TQt::PenStyle s ) const { ObjectDrawer* ret = new ObjectDrawer; ret->mcolor = mcolor; @@ -117,7 +117,7 @@ int ObjectDrawer::width() const return mwidth; } -Qt::PenStyle ObjectDrawer::style() const +TQt::PenStyle ObjectDrawer::style() const { return mstyle; } @@ -127,13 +127,13 @@ int ObjectDrawer::pointStyle() const return mpointstyle; } -ObjectDrawer::ObjectDrawer( const TQColor& color, int width, bool shown, Qt::PenStyle style, int pointStyle ) +ObjectDrawer::ObjectDrawer( const TQColor& color, int width, bool shown, TQt::PenStyle style, int pointStyle ) : mcolor( color ), mshown( shown ), mwidth( width ), mstyle( style ), mpointstyle( pointStyle ) { } ObjectDrawer::ObjectDrawer() - : mcolor( TQt::blue ), mshown( true ), mwidth( -1 ), mstyle( Qt::SolidLine ), mpointstyle( 0 ) + : mcolor( TQt::blue ), mshown( true ), mwidth( -1 ), mstyle( TQt::SolidLine ), mpointstyle( 0 ) { } @@ -173,19 +173,19 @@ TQString ObjectDrawer::pointStyleToString() const return TQString(); } -Qt::PenStyle ObjectDrawer::styleFromString( const TQString& style ) +TQt::PenStyle ObjectDrawer::styleFromString( const TQString& style ) { if ( style == "SolidLine" ) - return Qt::SolidLine; + return TQt::SolidLine; else if ( style == "DashLine" ) - return Qt::DashLine; + return TQt::DashLine; else if ( style == "DotLine" ) - return Qt::DotLine; + return TQt::DotLine; else if ( style == "DashDotLine" ) - return Qt::DashDotLine; + return TQt::DashDotLine; else if ( style == "DashDotDotLine" ) - return Qt::DashDotDotLine; - else return Qt::SolidLine; + return TQt::DashDotDotLine; + else return TQt::SolidLine; } TQString ObjectDrawer::styleToString() const diff --git a/kig/objects/object_drawer.h b/kig/objects/object_drawer.h index cbd1374a..b5336a06 100644 --- a/kig/objects/object_drawer.h +++ b/kig/objects/object_drawer.h @@ -48,7 +48,7 @@ class ObjectDrawer TQColor mcolor; bool mshown; int mwidth; - Qt::PenStyle mstyle; + TQt::PenStyle mstyle; int mpointstyle; public: /** @@ -57,7 +57,7 @@ public: * and pointstyle ( 0 ) */ ObjectDrawer(); - ObjectDrawer( const TQColor& color, int width = -1, bool shown = true, Qt::PenStyle = Qt::SolidLine, int pointStyle = 0 ); + ObjectDrawer( const TQColor& color, int width = -1, bool shown = true, TQt::PenStyle = TQt::SolidLine, int pointStyle = 0 ); /** * Draw the object \p imp on kigpainter \p p . If \p selected is true, it is * drawn in red, otherwise in its normal color. @@ -91,7 +91,7 @@ public: /** * return PenStyle for all objects except points */ - Qt::PenStyle style() const; + TQt::PenStyle style() const; /** * return pointStyle for points */ @@ -123,7 +123,7 @@ public: * returns a new ObjectDrawer that is identical to this one.. except * that the PenStyle state is set to \p s .. */ - ObjectDrawer* getCopyStyle( Qt::PenStyle s ) const; + ObjectDrawer* getCopyStyle( TQt::PenStyle s ) const; /** * returns a new ObjectDrawer that is identical to this one.. except * that the pointStyle state is set to \p p .. @@ -140,7 +140,7 @@ public: * given \p style string is unknown. In that case it returns a default * value. */ - static Qt::PenStyle styleFromString( const TQString& style ); + static TQt::PenStyle styleFromString( const TQString& style ); }; #endif |