summaryrefslogtreecommitdiffstats
path: root/kig/objects/object_drawer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kig/objects/object_drawer.cpp')
-rw-r--r--kig/objects/object_drawer.cpp24
1 files changed, 12 insertions, 12 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