summaryrefslogtreecommitdiffstats
path: root/karbon/plugins/flattenpath/flattenpathplugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/plugins/flattenpath/flattenpathplugin.cc')
-rw-r--r--karbon/plugins/flattenpath/flattenpathplugin.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/karbon/plugins/flattenpath/flattenpathplugin.cc b/karbon/plugins/flattenpath/flattenpathplugin.cc
index 4532a12c..1cb16658 100644
--- a/karbon/plugins/flattenpath/flattenpathplugin.cc
+++ b/karbon/plugins/flattenpath/flattenpathplugin.cc
@@ -23,8 +23,8 @@
#include <karbon_part.h>
#include <kgenericfactory.h>
#include <kdebug.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
#include <knuminput.h>
#include <commands/vflattencmd.h>
@@ -33,12 +33,12 @@
typedef KGenericFactory<FlattenPathPlugin, KarbonView> FlattenPathPluginFactory;
K_EXPORT_COMPONENT_FACTORY( karbon_flattenpathplugin, FlattenPathPluginFactory( "karbonflattenpathplugin" ) )
-FlattenPathPlugin::FlattenPathPlugin( KarbonView *parent, const char* name, const QStringList & )
-: Plugin( parent, name )
+FlattenPathPlugin::FlattenPathPlugin( KarbonView *tqparent, const char* name, const TQStringList & )
+: Plugin( tqparent, name )
{
new KAction(
i18n( "&Flatten Path..." ), "14_flatten", 0, this,
- SLOT( slotFlattenPath() ), actionCollection(), "path_flatten" );
+ TQT_SLOT( slotFlattenPath() ), actionCollection(), "path_flatten" );
m_flattenPathDlg = new VFlattenDlg();
m_flattenPathDlg->setFlatness( 0.2 );
@@ -47,23 +47,23 @@ FlattenPathPlugin::FlattenPathPlugin( KarbonView *parent, const char* name, cons
void
FlattenPathPlugin::slotFlattenPath()
{
- KarbonPart *part = ((KarbonView *)parent())->part();
+ KarbonPart *part = ((KarbonView *)tqparent())->part();
if( part && m_flattenPathDlg->exec() )
part->addCommand( new VFlattenCmd( &part->document(), m_flattenPathDlg->flatness() ), true );
}
-VFlattenDlg::VFlattenDlg( QWidget* parent, const char* name )
- : KDialogBase( parent, name, true, i18n( "Flatten Path" ), Ok | Cancel )
+VFlattenDlg::VFlattenDlg( TQWidget* tqparent, const char* name )
+ : KDialogBase( tqparent, name, true, i18n( "Flatten Path" ), Ok | Cancel )
{
// add input fields on the left:
- QGroupBox* group = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this );
- new QLabel( i18n( "Flatness:" ), group );
+ TQGroupBox* group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this );
+ new TQLabel( i18n( "Flatness:" ), group );
m_flatness = 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() );