diff options
Diffstat (limited to 'karbon/commands/vshapecmd.cc')
-rw-r--r-- | karbon/commands/vshapecmd.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/karbon/commands/vshapecmd.cc b/karbon/commands/vshapecmd.cc index 59ea841a..ae0ad2dc 100644 --- a/karbon/commands/vshapecmd.cc +++ b/karbon/commands/vshapecmd.cc @@ -25,33 +25,33 @@ #include "vshapecmd.h" -VShapeCmd::VShapeCmd( VDocument* doc, const QString& name, VPath* shape, const QString& icon ) - : VCommand( doc, name, icon ), m_shape( shape ) +VShapeCmd::VShapeCmd( VDocument* doc, const TQString& name, VPath* tqshape, const TQString& icon ) + : VCommand( doc, name, icon ), m_tqshape( tqshape ) { } void VShapeCmd::execute() { - if( !m_shape ) + if( !m_tqshape ) return; - if( m_shape->state() == VObject::deleted ) + if( m_tqshape->state() == VObject::deleted ) { document()->selection()->clear(); - m_shape->setState( VObject::normal ); - document()->selection()->append( m_shape ); + m_tqshape->setState( VObject::normal ); + document()->selection()->append( m_tqshape ); } else { - m_shape->setState( VObject::normal ); - m_shape->setFill( *( document()->selection()->fill() ) ); - m_shape->setStroke( *( document()->selection()->stroke() ) ); + m_tqshape->setState( VObject::normal ); + m_tqshape->setFill( *( document()->selection()->fill() ) ); + m_tqshape->setStroke( *( document()->selection()->stroke() ) ); // Add path: - document()->append( m_shape ); + document()->append( m_tqshape ); document()->selection()->clear(); - document()->selection()->append( m_shape ); + document()->selection()->append( m_tqshape ); } setSuccess( true ); @@ -60,11 +60,11 @@ VShapeCmd::execute() void VShapeCmd::unexecute() { - if( !m_shape ) + if( !m_tqshape ) return; - document()->selection()->take( *m_shape ); - m_shape->setState( VObject::deleted ); + document()->selection()->take( *m_tqshape ); + m_tqshape->setState( VObject::deleted ); setSuccess( false ); } |