diff options
Diffstat (limited to 'krecipes/src/dialogs/createunitdialog.cpp')
-rw-r--r-- | krecipes/src/dialogs/createunitdialog.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/krecipes/src/dialogs/createunitdialog.cpp b/krecipes/src/dialogs/createunitdialog.cpp index 7f35862..224f65d 100644 --- a/krecipes/src/dialogs/createunitdialog.cpp +++ b/krecipes/src/dialogs/createunitdialog.cpp @@ -12,52 +12,52 @@ #include "createunitdialog.h" -#include <qlabel.h> +#include <ntqlabel.h> #include <klocale.h> #include <klineedit.h> #include <kcombobox.h> -CreateUnitDialog::CreateUnitDialog( QWidget *parent, const QString &name, const QString &plural, const QString &name_abbrev, const QString &plural_abbrev, bool newUnit ) +CreateUnitDialog::CreateUnitDialog( TQWidget *parent, const TQString &name, const TQString &plural, const TQString &name_abbrev, const TQString &plural_abbrev, bool newUnit ) : KDialogBase( parent, "createElementDialog", true, (newUnit)?i18n( "New Unit" ):i18n("Unit"), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok ) { - QVBox *page = makeVBoxMainWidget(); + TQVBox *page = makeVBoxMainWidget(); - box = new QGroupBox( page ); - box->setColumnLayout( 0, Qt::Vertical ); + box = new TQGroupBox( page ); + box->setColumnLayout( 0, TQt::Vertical ); box->layout() ->setSpacing( 6 ); box->layout() ->setMargin( 11 ); - QGridLayout *gridLayout = new QGridLayout( box->layout() ); - gridLayout->setAlignment( Qt::AlignTop ); + TQGridLayout *gridLayout = new TQGridLayout( box->layout() ); + gridLayout->setAlignment( TQt::AlignTop ); box->setTitle( (newUnit)?i18n( "New Unit" ):i18n("Unit") ); - QLabel *nameLabel = new QLabel( i18n( "Singular:" ), box ); + TQLabel *nameLabel = new TQLabel( i18n( "Singular:" ), box ); nameEdit = new KLineEdit( name, box ); gridLayout->addWidget( nameLabel, 0, 0 ); gridLayout->addWidget( nameEdit, 0, 1 ); - QLabel *nameAbbrevLabel = new QLabel( i18n( "Abbreviation:" ), box ); + TQLabel *nameAbbrevLabel = new TQLabel( i18n( "Abbreviation:" ), box ); nameAbbrevEdit = new KLineEdit( name_abbrev, box ); gridLayout->addWidget( nameAbbrevLabel, 0, 2 ); gridLayout->addWidget( nameAbbrevEdit, 0, 3 ); - QLabel *pluralLabel = new QLabel( i18n( "Plural:" ), box ); + TQLabel *pluralLabel = new TQLabel( i18n( "Plural:" ), box ); pluralEdit = new KLineEdit( plural, box ); gridLayout->addWidget( pluralLabel, 1, 0 ); gridLayout->addWidget( pluralEdit, 1, 1 ); - QLabel *pluralAbbrevLabel = new QLabel( i18n( "Abbreviation:" ), box ); + TQLabel *pluralAbbrevLabel = new TQLabel( i18n( "Abbreviation:" ), box ); pluralAbbrevEdit = new KLineEdit( plural_abbrev, box ); gridLayout->addWidget( pluralAbbrevLabel, 1, 2 ); gridLayout->addWidget( pluralAbbrevEdit, 1, 3 ); - QLabel *typeLabel = new QLabel( i18n( "Type:" ), box ); + TQLabel *typeLabel = new TQLabel( i18n( "Type:" ), box ); typeComboBox = new KComboBox( false, box ); typeComboBox->insertItem(i18n("Other")); typeComboBox->insertItem(i18n("Mass")); @@ -69,7 +69,7 @@ CreateUnitDialog::CreateUnitDialog( QWidget *parent, const QString &name, const adjustSize(); setFixedSize( size() ); //we've got all the widgets put in, now let's keep it this size - connect( nameAbbrevEdit, SIGNAL(textChanged(const QString&)), SLOT(nameAbbrevTextChanged(const QString &)) ); + connect( nameAbbrevEdit, SIGNAL(textChanged(const TQString&)), SLOT(nameAbbrevTextChanged(const TQString &)) ); if ( name.isEmpty() ) nameEdit->setFocus(); @@ -83,8 +83,8 @@ CreateUnitDialog::~CreateUnitDialog() Unit CreateUnitDialog::newUnit( void ) { - QString name = nameEdit->text(); - QString plural = pluralEdit->text(); + TQString name = nameEdit->text(); + TQString plural = pluralEdit->text(); if ( name.isEmpty() ) name = plural; @@ -100,7 +100,7 @@ Unit CreateUnitDialog::newUnit( void ) return new_unit; } -void CreateUnitDialog::nameAbbrevTextChanged(const QString &newText) +void CreateUnitDialog::nameAbbrevTextChanged(const TQString &newText) { //appending if ( newText.left( newText.length()-1 ) == pluralAbbrevEdit->text() ) { |