summaryrefslogtreecommitdiffstats
path: root/karbon/tools/vspiraltool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/tools/vspiraltool.cc')
-rw-r--r--karbon/tools/vspiraltool.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/karbon/tools/vspiraltool.cc b/karbon/tools/vspiraltool.cc
index f4c3fff6..a9a361f5 100644
--- a/karbon/tools/vspiraltool.cc
+++ b/karbon/tools/vspiraltool.cc
@@ -17,8 +17,8 @@
* Boston, MA 02110-1301, USA.
*/
-#include <qlabel.h>
-#include <qgroupbox.h>
+#include <tqlabel.h>
+#include <tqgroupbox.h>
#include <klocale.h>
#include <kcombobox.h>
@@ -26,32 +26,32 @@
#include <karbon_view.h>
#include <karbon_part.h>
-#include <shapes/vspiral.h>
+#include <tqshapes/vspiral.h>
#include "vspiraltool.h"
#include "KoUnitWidgets.h"
-VSpiralTool::VSpiralOptionsWidget::VSpiralOptionsWidget( KarbonPart *part, QWidget* parent, const char* name )
- : KDialogBase( parent, name, true, i18n( "Insert Spiral" ), Ok | Cancel ), m_part( part )
+VSpiralTool::VSpiralOptionsWidget::VSpiralOptionsWidget( KarbonPart *part, TQWidget* tqparent, const char* name )
+ : KDialogBase( tqparent, name, true, i18n( "Insert Spiral" ), Ok | Cancel ), m_part( part )
{
- QGroupBox *group = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this );
+ TQGroupBox *group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this );
- new QLabel( i18n( "Type:" ), group );
+ new TQLabel( i18n( "Type:" ), group );
m_type = new KComboBox( false, group );
m_type->insertItem( i18n( "Round" ), 0 );
m_type->insertItem( i18n( "Rectangular" ), 1 );
- new QLabel( i18n( "Radius:" ), group );
+ new TQLabel( i18n( "Radius:" ), group );
m_radius = new KoUnitDoubleSpinBox( group, 0.0, 1000.0, 0.5, 50.0, KoUnit::U_MM );
refreshUnit();
- new QLabel( i18n( "Segments:" ), group );
+ new TQLabel( i18n( "Segments:" ), group );
m_segments = new KIntSpinBox( group );
m_segments->setMinValue( 1 );
- new QLabel( i18n( "Fade:" ), group );
+ new TQLabel( i18n( "Fade:" ), group );
m_fade = new KDoubleNumInput( group );
m_fade->setRange( 0.0, 1.0, 0.05 );
- new QLabel( i18n( "Orientation:" ), group );
+ new TQLabel( i18n( "Qt::Orientation:" ), group );
m_clockwise = new KComboBox( false, group );
m_clockwise->insertItem( i18n( "Clockwise" ), 0 );
m_clockwise->insertItem( i18n( "Counter Clockwise" ), 1 );
@@ -135,12 +135,12 @@ VSpiralTool::VSpiralTool( KarbonView *view )
}
void
-VSpiralTool::arrowKeyReleased( Qt::Key key )
+VSpiralTool::arrowKeyReleased( TQt::Key key )
{
int change = 0;
- if( key == Qt::Key_Up )
+ if( key == TQt::Key_Up )
change = 1;
- else if( key == Qt::Key_Down )
+ else if( key == TQt::Key_Down )
change = -1;
if( change != 0 )
@@ -165,7 +165,7 @@ VSpiralTool::refreshUnit()
}
VPath*
-VSpiralTool::shape( bool interactive ) const
+VSpiralTool::tqshape( bool interactive ) const
{
if( interactive )
{
@@ -194,7 +194,7 @@ VSpiralTool::shape( bool interactive ) const
bool
VSpiralTool::showDialog() const
{
- return m_optionsWidget->exec() == QDialog::Accepted;
+ return m_optionsWidget->exec() == TQDialog::Accepted;
}
void
@@ -204,9 +204,9 @@ VSpiralTool::setup( KActionCollection *collection )
if( m_action == 0 )
{
- m_action = new KRadioAction( i18n( "Spiral Tool" ), "14_spiral", Qt::SHIFT+Qt::Key_H, this, SLOT( activate() ), collection, name() );
+ m_action = new KRadioAction( i18n( "Spiral Tool" ), "14_spiral", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() );
m_action->setToolTip( i18n( "Spiral" ) );
- m_action->setExclusiveGroup( "shapes" );
+ m_action->setExclusiveGroup( "tqshapes" );
//m_ownAction = true;
}
}