summaryrefslogtreecommitdiffstats
path: root/kig/modes/popup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kig/modes/popup.cpp')
-rw-r--r--kig/modes/popup.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kig/modes/popup.cpp b/kig/modes/popup.cpp
index 05dc5d24..c11df7ae 100644
--- a/kig/modes/popup.cpp
+++ b/kig/modes/popup.cpp
@@ -472,21 +472,21 @@ void BuiltinObjectActionsProvider::fillUpMenu( NormalModePopupObjects& popup, in
ScreenInfo si( Rect( -1, -1, 2, 2 ), p.rect() );
KigPainter ptr( si, TQT_TQPAINTDEVICE(&p), popup.part().document(), false );
PointImp pt( Coordinate( 0, 0 ) );
- ObjectDrawer d( color, -1, true, Qt::SolidLine, i );
+ ObjectDrawer d( color, -1, true, TQt::SolidLine, i );
d.draw( pt, ptr, false );
popup.addAction( menu, p, nextfree++ );
}
else
{
- Qt::PenStyle penstyles[] = {Qt::SolidLine, Qt::DashLine, Qt::DashDotLine, Qt::DashDotDotLine, Qt::DotLine};
- for ( int i = 0; i < (int) ( sizeof( penstyles ) / sizeof( Qt::PenStyle ) ); ++i )
+ TQt::PenStyle penstyles[] = {TQt::SolidLine, TQt::DashLine, TQt::DashDotLine, TQt::DashDotDotLine, TQt::DotLine};
+ for ( int i = 0; i < (int) ( sizeof( penstyles ) / sizeof( TQt::PenStyle ) ); ++i )
{
TQPixmap p( 50, 20 );
p.fill( popup.eraseColor() );
ScreenInfo si( Rect( -2.5, -1, 5, 2 ), p.rect() );
KigPainter ptr( si, TQT_TQPAINTDEVICE(&p), popup.part().document(), false );
LineImp line( Coordinate( -1, 0 ), Coordinate( 1, 0 ) );
- Qt::PenStyle ps = penstyles[i];
+ TQt::PenStyle ps = penstyles[i];
ObjectDrawer d( color, -1, true, ps, 1 );
d.draw( line, ptr, false );
popup.addAction( menu, p, nextfree++ );
@@ -712,9 +712,9 @@ bool BuiltinObjectActionsProvider::executeAction(
}
else
{
- Qt::PenStyle penstyles[] = {Qt::SolidLine, Qt::DashLine, Qt::DashDotLine, Qt::DashDotDotLine, Qt::DotLine};
- assert( id < (int)( sizeof( penstyles ) / sizeof( Qt::PenStyle ) ) );
- Qt::PenStyle p = penstyles[id];
+ TQt::PenStyle penstyles[] = {TQt::SolidLine, TQt::DashLine, TQt::DashDotLine, TQt::DashDotDotLine, TQt::DotLine};
+ assert( id < (int)( sizeof( penstyles ) / sizeof( TQt::PenStyle ) ) );
+ TQt::PenStyle p = penstyles[id];
KigCommand* kc = new KigCommand( doc, i18n( "Change Object Style" ) );
for ( std::vector<ObjectHolder*>::const_iterator i = os.begin(); i != os.end(); ++i )
if ( ! (*i)->imp()->inherits( PointImp::stype() ) )