summaryrefslogtreecommitdiffstats
path: root/karbon/tools/vsinustool.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /karbon/tools/vsinustool.cc
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karbon/tools/vsinustool.cc')
-rw-r--r--karbon/tools/vsinustool.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/karbon/tools/vsinustool.cc b/karbon/tools/vsinustool.cc
index 056b88c9..a520afba 100644
--- a/karbon/tools/vsinustool.cc
+++ b/karbon/tools/vsinustool.cc
@@ -18,34 +18,34 @@
*/
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <knuminput.h>
#include <karbon_view.h>
#include <karbon_part.h>
-#include <shapes/vsinus.h>
+#include <tqshapes/vsinus.h>
#include "vsinustool.h"
#include "KoUnitWidgets.h"
-VSinusTool::VSinusOptionsWidget::VSinusOptionsWidget( KarbonPart *part, QWidget* parent, const char* name )
- : KDialogBase( parent, name, true, i18n( "Insert Sinus" ), Ok | Cancel ), m_part( part )
+VSinusTool::VSinusOptionsWidget::VSinusOptionsWidget( KarbonPart *part, TQWidget* tqparent, const char* name )
+ : KDialogBase( tqparent, name, true, i18n( "Insert Sinus" ), 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 );
// add width/height-input:
- m_widthLabel = new QLabel( i18n( "object width", "Width:" ), group );
+ m_widthLabel = new TQLabel( i18n( "object width", "Width:" ), group );
m_width = new KoUnitDoubleSpinBox( group, 0.0, 1000.0, 0.5, 100.0, KoUnit::U_MM );
- m_heightLabel = new QLabel( i18n( "Height:" ), group );
+ m_heightLabel = new TQLabel( i18n( "Height:" ), group );
m_height = new KoUnitDoubleSpinBox( group, 0.0, 1000.0, 0.5, 100.0, KoUnit::U_MM );
refreshUnit();
- new QLabel( i18n( "Periods:" ), group );
+ new TQLabel( i18n( "Periods:" ), group );
m_periods = new KIntSpinBox( group );
m_periods->setMinValue( 1 );
@@ -120,7 +120,7 @@ VSinusTool::refreshUnit()
}
VPath*
-VSinusTool::shape( bool interactive ) const
+VSinusTool::tqshape( bool interactive ) const
{
if( interactive )
return
@@ -143,7 +143,7 @@ VSinusTool::shape( bool interactive ) const
bool
VSinusTool::showDialog() const
{
- return m_optionsWidget->exec() == QDialog::Accepted;
+ return m_optionsWidget->exec() == TQDialog::Accepted;
}
void
@@ -153,9 +153,9 @@ VSinusTool::setup( KActionCollection *collection )
if( m_action == 0 )
{
- m_action = new KRadioAction( i18n( "Sinus Tool" ), "14_sinus", Qt::SHIFT+Qt::Key_S, this, SLOT( activate() ), collection, name() );
+ m_action = new KRadioAction( i18n( "Sinus Tool" ), "14_sinus", TQt::SHIFT+TQt::Key_S, this, TQT_SLOT( activate() ), collection, name() );
m_action->setToolTip( i18n( "Sinus" ) );
- m_action->setExclusiveGroup( "shapes" );
+ m_action->setExclusiveGroup( "tqshapes" );
//m_ownAction = true;
}
}