summaryrefslogtreecommitdiffstats
path: root/karbon/plugins/whirlpinch/whirlpinchplugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/plugins/whirlpinch/whirlpinchplugin.cc')
-rw-r--r--karbon/plugins/whirlpinch/whirlpinchplugin.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/karbon/plugins/whirlpinch/whirlpinchplugin.cc b/karbon/plugins/whirlpinch/whirlpinchplugin.cc
index 5c6c716a..f26fd091 100644
--- a/karbon/plugins/whirlpinch/whirlpinchplugin.cc
+++ b/karbon/plugins/whirlpinch/whirlpinchplugin.cc
@@ -30,19 +30,19 @@
#include <kdebug.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
#include <knuminput.h>
typedef KGenericFactory<WhirlPinchPlugin, KarbonView> WhirlPinchPluginFactory;
K_EXPORT_COMPONENT_FACTORY( karbon_whirlpinchplugin, WhirlPinchPluginFactory( "karbonwhirlpinchplugin" ) )
-WhirlPinchPlugin::WhirlPinchPlugin( KarbonView *parent, const char* name, const QStringList & ) : Plugin( parent, name )
+WhirlPinchPlugin::WhirlPinchPlugin( KarbonView *tqparent, const char* name, const TQStringList & ) : Plugin( tqparent, name )
{
new KAction(
i18n( "&Whirl/Pinch..." ), "14_whirl", 0, this,
- SLOT( slotWhirlPinch() ), actionCollection(), "path_whirlpinch" );
+ TQT_SLOT( slotWhirlPinch() ), actionCollection(), "path_whirlpinch" );
m_whirlPinchDlg = new VWhirlPinchDlg();
m_whirlPinchDlg->setAngle( 20.0 );
@@ -53,28 +53,28 @@ WhirlPinchPlugin::WhirlPinchPlugin( KarbonView *parent, const char* name, const
void
WhirlPinchPlugin::slotWhirlPinch()
{
- KarbonPart *part = ((KarbonView *)parent())->part();
+ KarbonPart *part = ((KarbonView *)tqparent())->part();
if( part && m_whirlPinchDlg->exec() )
part->addCommand( new VWhirlPinchCmd( &part->document(), m_whirlPinchDlg->angle(), m_whirlPinchDlg->pinch(), m_whirlPinchDlg->radius() ), true );
}
-VWhirlPinchDlg::VWhirlPinchDlg( QWidget* parent, const char* name )
- : KDialogBase( parent, name, true, i18n( "Whirl Pinch" ), Ok | Cancel )
+VWhirlPinchDlg::VWhirlPinchDlg( TQWidget* tqparent, const char* name )
+ : KDialogBase( tqparent, name, true, i18n( "Whirl Pinch" ), Ok | Cancel )
{
// add input fields:
- QGroupBox* group = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this );
+ TQGroupBox* group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this );
- new QLabel( i18n( "Angle:" ), group );
+ new TQLabel( i18n( "Angle:" ), group );
m_angle = new KDoubleNumInput( group );
- new QLabel( i18n( "Pinch:" ), group );
+ new TQLabel( i18n( "Pinch:" ), group );
m_pinch = new KDoubleNumInput( group );
- new QLabel( i18n( "Radius:" ), group );
+ new TQLabel( i18n( "Radius:" ), group );
m_radius = new KDoubleNumInput( group );
group->setMinimumWidth( 300 );
// signals and slots:
- connect( this, SIGNAL( okClicked() ), this, SLOT( accept() ) );
- connect( this, SIGNAL( cancelClicked() ), this, SLOT( reject() ) );
+ connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( accept() ) );
+ connect( this, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( reject() ) );
setMainWidget( group );
setFixedSize( baseSize() );
@@ -143,7 +143,7 @@ VWhirlPinchCmd::visitVPath( VPath& composite )
void
VWhirlPinchCmd::visitVSubpath( VSubpath& path )
{
- QWMatrix m;
+ TQWMatrix m;
KoPoint delta;
double dist;
@@ -192,7 +192,7 @@ VWhirlPinchCmd::visitVSubpath( VSubpath& path )
}
// Invalidate bounding box once.
- path.invalidateBoundingBox();
+ path.tqinvalidateBoundingBox();
}
#include "whirlpinchplugin.moc"