summaryrefslogtreecommitdiffstats
path: root/karbon/tools/vpolygontool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/tools/vpolygontool.cc')
-rw-r--r--karbon/tools/vpolygontool.cc34
1 files changed, 17 insertions, 17 deletions
diff --git a/karbon/tools/vpolygontool.cc b/karbon/tools/vpolygontool.cc
index fcd0faeb..a9584be6 100644
--- a/karbon/tools/vpolygontool.cc
+++ b/karbon/tools/vpolygontool.cc
@@ -18,8 +18,8 @@
*/
-#include <qlabel.h>
-#include <qgroupbox.h>
+#include <tqlabel.h>
+#include <tqgroupbox.h>
#include <kdialogbase.h>
#include <klocale.h>
@@ -27,18 +27,18 @@
#include <karbon_view.h>
#include <karbon_part.h>
-#include <shapes/vstar.h>
+#include <tqshapes/vstar.h>
#include "vpolygontool.h"
-VPolygonTool::VPolygonOptionsWidget::VPolygonOptionsWidget( KarbonView *view, QWidget* parent, const char* name )
- : KDialogBase( parent, name, true, i18n( "Insert Polygon" ), Ok | Cancel ), m_view(view)
+VPolygonTool::VPolygonOptionsWidget::VPolygonOptionsWidget( KarbonView *view, TQWidget* tqparent, const char* name )
+ : KDialogBase( tqparent, name, true, i18n( "Insert Polygon" ), Ok | Cancel ), m_view(view)
{
- QGroupBox *group = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this );
+ TQGroupBox *group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this );
- 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( "Edges:" ), group );
+ new TQLabel( i18n( "Edges:" ), group );
m_edges = new KIntSpinBox( group );
m_edges->setMinValue( 3 );
@@ -100,12 +100,12 @@ VPolygonTool::refreshUnit()
}
void
-VPolygonTool::arrowKeyReleased( Qt::Key key )
+VPolygonTool::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 )
@@ -119,7 +119,7 @@ VPolygonTool::arrowKeyReleased( Qt::Key key )
}
VPath*
-VPolygonTool::shape( bool interactive ) const
+VPolygonTool::tqshape( bool interactive ) const
{
if( interactive )
{
@@ -144,7 +144,7 @@ VPolygonTool::shape( bool interactive ) const
bool
VPolygonTool::showDialog() const
{
- return m_optionsWidget->exec() == QDialog::Accepted;
+ return m_optionsWidget->exec() == TQDialog::Accepted;
}
void
@@ -154,11 +154,11 @@ VPolygonTool::setup( KActionCollection *collection )
if( m_action == 0 )
{
- KShortcut shortcut( Qt::Key_Plus );
- shortcut.append(KShortcut( Qt::Key_F9 ) );
- m_action = new KRadioAction( i18n( "Polygon Tool" ), "14_polygon", shortcut, this, SLOT( activate() ), collection, name() );
+ KShortcut shortcut( TQt::Key_Plus );
+ shortcut.append(KShortcut( TQt::Key_F9 ) );
+ m_action = new KRadioAction( i18n( "Polygon Tool" ), "14_polygon", shortcut, this, TQT_SLOT( activate() ), collection, name() );
m_action->setToolTip( i18n( "Polygon" ) );
- m_action->setExclusiveGroup( "shapes" );
+ m_action->setExclusiveGroup( "tqshapes" );
//m_ownAction = true;
}
}