summaryrefslogtreecommitdiffstats
path: root/karbon/commands/vshapecmd.cc
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:56:31 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:56:31 -0600
commitc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch)
tree1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /karbon/commands/vshapecmd.cc
parent94844816550ad672ccfcdc25659c625546239998 (diff)
downloadkoffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz
koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'karbon/commands/vshapecmd.cc')
-rw-r--r--karbon/commands/vshapecmd.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/karbon/commands/vshapecmd.cc b/karbon/commands/vshapecmd.cc
index 9a59fcd9..ae0ad2dc 100644
--- a/karbon/commands/vshapecmd.cc
+++ b/karbon/commands/vshapecmd.cc
@@ -25,33 +25,33 @@
#include "vshapecmd.h"
-VShapeCmd::VShapeCmd( VDocument* doc, const TQString& name, VPath* shape, const TQString& 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 );
}