diff options
Diffstat (limited to 'karbon/tools/vroundrecttool.cc')
-rw-r--r-- | karbon/tools/vroundrecttool.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/karbon/tools/vroundrecttool.cc b/karbon/tools/vroundrecttool.cc index af21d4d9..a211114f 100644 --- a/karbon/tools/vroundrecttool.cc +++ b/karbon/tools/vroundrecttool.cc @@ -18,35 +18,35 @@ */ -#include <qgroupbox.h> -#include <qlabel.h> +#include <tqgroupbox.h> +#include <tqlabel.h> #include <knuminput.h> #include <karbon_view.h> #include <karbon_part.h> -#include <shapes/vrectangle.h> +#include <tqshapes/vrectangle.h> #include "vroundrecttool.h" #include "KoUnitWidgets.h" #include <kgenericfactory.h> -VRoundRectTool::VRoundRectOptionsWidget::VRoundRectOptionsWidget( KarbonPart *part, QWidget* parent, const char* name ) - : KDialogBase( parent, name, true, i18n( "Insert Round Rect" ), Ok | Cancel ), m_part( part ) +VRoundRectTool::VRoundRectOptionsWidget::VRoundRectOptionsWidget( KarbonPart *part, TQWidget* tqparent, const char* name ) + : KDialogBase( tqparent, name, true, i18n( "Insert Round Rect" ), Ok | Cancel ), m_part( part ) { - QGroupBox *group = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); - new QLabel( i18n( "object width", "Width:" ), group ); + TQGroupBox *group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); + new TQLabel( i18n( "object width", "Width:" ), group ); KoUnit::Unit unit = KoUnit::U_CM; m_width = new KoUnitDoubleSpinBox( group, 0.0, KoUnit::fromUserValue( 1000.0, unit ), KoUnit::fromUserValue( 0.5, unit ), KoUnit::fromUserValue( 10.0, unit ), unit ); - new QLabel( i18n( "Height (%1):" ).arg(KoUnit::unitName( m_part->unit() )), group ); + new TQLabel( i18n( "Height (%1):" ).tqarg(KoUnit::unitName( m_part->unit() )), group ); m_height = new KoUnitDoubleSpinBox( group, 0.0, KoUnit::fromUserValue( 1000.0, unit ), KoUnit::fromUserValue( 0.5, unit ), KoUnit::fromUserValue( 10.0, unit ), unit ); - new QLabel( i18n( "Edge radius X:" ), group ); + new TQLabel( i18n( "Edge radius X:" ), group ); m_roundx = new KoUnitDoubleSpinBox( group, 0.0, KoUnit::fromUserValue( 100.0, unit ), KoUnit::fromUserValue( 0.1, unit ), KoUnit::fromUserValue( 1.0, unit ), unit ); - new QLabel( i18n( "Edge radius Y:" ), group ); + new TQLabel( i18n( "Edge radius Y:" ), group ); m_roundy = new KoUnitDoubleSpinBox( group, 0.0, KoUnit::fromUserValue( 100.0, unit ), KoUnit::fromUserValue( 0.1, unit ), KoUnit::fromUserValue( 1.0, unit ), unit ); group->setInsideMargin( 4 ); @@ -132,7 +132,7 @@ void VRoundRectTool::refreshUnit() } VPath* -VRoundRectTool::shape( bool interactive ) const +VRoundRectTool::tqshape( bool interactive ) const { if( interactive ) { @@ -160,7 +160,7 @@ VRoundRectTool::shape( bool interactive ) const bool VRoundRectTool::showDialog() const { - return m_optionsWidget->exec() == QDialog::Accepted; + return m_optionsWidget->exec() == TQDialog::Accepted; } void @@ -170,9 +170,9 @@ VRoundRectTool::setup( KActionCollection *collection ) if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Round Rectangle Tool" ), "14_roundrect", Qt::SHIFT+Qt::Key_H, this, SLOT( activate() ), collection, name() ); + m_action = new KRadioAction( i18n( "Round Rectangle Tool" ), "14_roundrect", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Round Rectangle" ) ); - m_action->setExclusiveGroup( "shapes" ); + m_action->setExclusiveGroup( "tqshapes" ); //m_ownAction = true; } } |