diff options
Diffstat (limited to 'kcron/ktvariable.cpp')
-rw-r--r-- | kcron/ktvariable.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kcron/ktvariable.cpp b/kcron/ktvariable.cpp index 014bdf6..19cbba0 100644 --- a/kcron/ktvariable.cpp +++ b/kcron/ktvariable.cpp @@ -11,7 +11,7 @@ #include "ktvariable.h" -#include <qlayout.h> +#include <tqlayout.h> #include <kapplication.h> // kapp #include <klocale.h> // i18n() @@ -22,22 +22,22 @@ #include "kticon.h" -KTVariable::KTVariable(CTVariable* _ctvar,const QString &_caption) : +KTVariable::KTVariable(CTVariable* _ctvar,const TQString &_caption) : KDialogBase(0, "ktvariable", true, _caption, Ok|Cancel, Ok, true), ctvar( _ctvar) { - QFrame *page = makeMainWidget(); - QGridLayout *layout = new QGridLayout( page, 5, 3, 0, spacingHint() ); + TQFrame *page = makeMainWidget(); + TQGridLayout *layout = new TQGridLayout( page, 5, 3, 0, spacingHint() ); layout->setRowStretch(3, 1); layout->setColStretch(1, 1); setIcon(KTIcon::application(true)); // variable - labVariable = new QLabel(i18n("&Variable:"), page, "labVariable"); + labVariable = new TQLabel(i18n("&Variable:"), page, "labVariable"); layout->addWidget(labVariable, 1, 0, Qt::AlignLeft | Qt::AlignTop); - cmbVariable = new QComboBox(true, page, "cmbVariable"); + cmbVariable = new TQComboBox(true, page, "cmbVariable"); layout->addWidget(cmbVariable, 1, 1); cmbVariable->insertItem("HOME"); @@ -48,20 +48,20 @@ KTVariable::KTVariable(CTVariable* _ctvar,const QString &_caption) : labVariable->setBuddy(cmbVariable); // icon - labIcon = new QLabel(page, "labIcon"); + labIcon = new TQLabel(page, "labIcon"); layout->addMultiCellWidget(labIcon, 0, 1, 2, 2); // value - labValue = new QLabel(i18n("Va&lue:"), page, "labValue"); + labValue = new TQLabel(i18n("Va&lue:"), page, "labValue"); layout->addWidget(labValue, 2, 0, Qt::AlignLeft | Qt::AlignTop); - leValue = new QLineEdit(page, "leValue"); + leValue = new TQLineEdit(page, "leValue"); layout->addMultiCellWidget(leValue, 2, 2, 1, 2); leValue->setMaxLength(255); labValue->setBuddy(leValue); // comment - labComment = new QLabel(i18n("Co&mment:"), page, "labComment"); + labComment = new TQLabel(i18n("Co&mment:"), page, "labComment"); layout->addWidget(labComment, 3, 0, Qt::AlignLeft | Qt::AlignTop); teComment = new KTextEdit(page, "teComment"); @@ -71,26 +71,26 @@ KTVariable::KTVariable(CTVariable* _ctvar,const QString &_caption) : labComment->setBuddy(teComment); // enabled - chkEnabled = new QCheckBox(i18n("&Enabled"), page, "chkEnabled"); + chkEnabled = new TQCheckBox(i18n("&Enabled"), page, "chkEnabled"); layout->addWidget(chkEnabled, 4, 0); // set starting field values - cmbVariable->setEditText(QString::fromLocal8Bit(ctvar->variable.c_str())); + cmbVariable->setEditText(TQString::fromLocal8Bit(ctvar->variable.c_str())); slotVariableChanged(); - leValue->setText(QString::fromLocal8Bit(ctvar->value.c_str())); + leValue->setText(TQString::fromLocal8Bit(ctvar->value.c_str())); - teComment->setText(QString::fromLocal8Bit(ctvar->comment.c_str())); + teComment->setText(TQString::fromLocal8Bit(ctvar->comment.c_str())); chkEnabled->setChecked(ctvar->enabled); cmbVariable->setFocus(); // connect them up - connect(cmbVariable,SIGNAL(highlighted(const QString&)), - SLOT(slotVariableChanged())); - connect(cmbVariable,SIGNAL(activated(const QString&)), - SLOT(slotVariableChanged())); + connect(cmbVariable,TQT_SIGNAL(highlighted(const TQString&)), + TQT_SLOT(slotVariableChanged())); + connect(cmbVariable,TQT_SIGNAL(activated(const TQString&)), + TQT_SLOT(slotVariableChanged())); } KTVariable::~KTVariable() @@ -99,7 +99,7 @@ KTVariable::~KTVariable() void KTVariable::slotVariableChanged() { - QString variable = cmbVariable->currentText(); + TQString variable = cmbVariable->currentText(); if (variable == "HOME") { labIcon->setPixmap(KTIcon::home(false)); |