diff options
Diffstat (limited to 'karbon/widgets/vtranslate.cc')
-rw-r--r-- | karbon/widgets/vtranslate.cc | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/karbon/widgets/vtranslate.cc b/karbon/widgets/vtranslate.cc index 1eaf81ed..37bfe811 100644 --- a/karbon/widgets/vtranslate.cc +++ b/karbon/widgets/vtranslate.cc @@ -18,10 +18,10 @@ * Boston, MA 02110-1301, USA. */ -#include <qcheckbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qstring.h> +#include <tqcheckbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqstring.h> #include <klocale.h> #include <knuminput.h> #include <kstdguiitem.h> @@ -29,43 +29,43 @@ #include "vtranslate.h" -VTranslate::VTranslate( QWidget* parent, const char* name ) - : QWidget( parent, name ) +VTranslate::VTranslate( TQWidget* tqparent, const char* name ) + : TQWidget( tqparent, name ) { setCaption( i18n( "Translate" ) ); - QVBoxLayout *mainlayout = new QVBoxLayout(this, 7); - mainlayout->addSpacing(5); + TQVBoxLayout *maintqlayout = new TQVBoxLayout(this, 7); + maintqlayout->addSpacing(5); - QGridLayout *inputlayout = new QGridLayout(this, 5, 3); - mainlayout->addLayout(inputlayout); - m_labelX = new QLabel(i18n("X:"), this); - inputlayout->addWidget(m_labelX, 0, 0); - labely = new QLabel(i18n("Y:"), this); - inputlayout->addWidget(labely, 1, 0); - inputlayout->addColSpacing(1, 1); - inputlayout->addColSpacing(3, 5); + TQGridLayout *inputtqlayout = new TQGridLayout(this, 5, 3); + maintqlayout->addLayout(inputtqlayout); + m_labelX = new TQLabel(i18n("X:"), this); + inputtqlayout->addWidget(m_labelX, 0, 0); + labely = new TQLabel(i18n("Y:"), this); + inputtqlayout->addWidget(labely, 1, 0); + inputtqlayout->addColSpacing(1, 1); + inputtqlayout->addColSpacing(3, 5); m_inputX = new KDoubleNumInput( this ); m_inputX->setRange(-10000.00, 10000.00, 1.00, false); //range is just for example - for now :-) - inputlayout->addWidget(m_inputX, 0, 2); + inputtqlayout->addWidget(m_inputX, 0, 2); m_inputY = new KDoubleNumInput( this ); m_inputY->setRange(-10000.00, 10000.00, 1.00, false); - inputlayout->addWidget(m_inputY, 1, 2); - m_labelUnit1 = new QLabel("", this); - inputlayout->addWidget(m_labelUnit1, 0, 4); - m_labelUnit2 = new QLabel("", this); - inputlayout->addWidget(m_labelUnit2, 1, 4); - mainlayout->addSpacing(5); - m_checkBoxPosition = new QCheckBox(i18n("Relative &position"), this); - mainlayout->addWidget(m_checkBoxPosition); - mainlayout->addSpacing(5); - m_buttonDuplicate = new QPushButton(i18n("&Duplicate"), this); - mainlayout->addWidget(m_buttonDuplicate); - mainlayout->addSpacing(1); + inputtqlayout->addWidget(m_inputY, 1, 2); + m_labelUnit1 = new TQLabel("", this); + inputtqlayout->addWidget(m_labelUnit1, 0, 4); + m_labelUnit2 = new TQLabel("", this); + inputtqlayout->addWidget(m_labelUnit2, 1, 4); + maintqlayout->addSpacing(5); + m_checkBoxPosition = new TQCheckBox(i18n("Relative &position"), this); + maintqlayout->addWidget(m_checkBoxPosition); + maintqlayout->addSpacing(5); + m_buttonDuplicate = new TQPushButton(i18n("&Duplicate"), this); + maintqlayout->addWidget(m_buttonDuplicate); + maintqlayout->addSpacing(1); m_buttonApply = new KPushButton(KStdGuiItem::apply(), this); - mainlayout->addWidget(m_buttonApply); + maintqlayout->addWidget(m_buttonApply); - mainlayout->activate(); + maintqlayout->activate(); setFixedSize(baseSize()); //Set the size tp fixed values } @@ -74,7 +74,7 @@ VTranslate::~VTranslate() { } -void VTranslate::setUnits( const QString& units ) +void VTranslate::setUnits( const TQString& units ) { m_labelUnit1->setText( units ); m_labelUnit2->setText( units ); |