diff options
Diffstat (limited to 'src/qalculateeditunknownvariabledialog.cpp')
-rw-r--r-- | src/qalculateeditunknownvariabledialog.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/qalculateeditunknownvariabledialog.cpp b/src/qalculateeditunknownvariabledialog.cpp index 6db4891..9b089a0 100644 --- a/src/qalculateeditunknownvariabledialog.cpp +++ b/src/qalculateeditunknownvariabledialog.cpp @@ -21,43 +21,43 @@ #include "qalculate_tde_utils.h" #include "qalculateeditnamesdialog.h" -#include <qgrid.h> +#include <tqgrid.h> #include <klineedit.h> -#include <qpushbutton.h> +#include <tqpushbutton.h> #include <kcombobox.h> -#include <qlabel.h> +#include <tqlabel.h> #include <klocale.h> -#include <qvbox.h> -#include <qhbox.h> -#include <qcheckbox.h> +#include <tqvbox.h> +#include <tqhbox.h> +#include <tqcheckbox.h> #include <kmessagebox.h> -#include <qlayout.h> +#include <tqlayout.h> #include <kapplication.h> extern PrintOptions printops; extern tree_struct variable_cats; -QalculateEditUnknownVariableDialog::QalculateEditUnknownVariableDialog(QWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Edit Variable"), Ok | Cancel | Help, Ok, true) { +QalculateEditUnknownVariableDialog::QalculateEditUnknownVariableDialog(TQWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Edit Variable"), Ok | Cancel | Help, Ok, true) { names_edit_dialog = NULL; edited_unknown = NULL; - setMainWidget(new QWidget(this)); - QGridLayout *grid = new QGridLayout(mainWidget(), 1, 1, 0, spacingHint()); - grid->addWidget(new QLabel(i18n("Name:"), mainWidget()), 0, 0); + setMainWidget(new TQWidget(this)); + TQGridLayout *grid = new TQGridLayout(mainWidget(), 1, 1, 0, spacingHint()); + grid->addWidget(new TQLabel(i18n("Name:"), mainWidget()), 0, 0); nameEdit = new KLineEdit(mainWidget()); grid->addWidget(nameEdit, 0, 1); - QHBoxLayout *hbox = new QHBoxLayout(0, 0, spacingHint()); + TQHBoxLayout *hbox = new TQHBoxLayout(0, 0, spacingHint()); grid->addMultiCellLayout(hbox, 1, 1, 0, 1); - namesLabel = new QLabel(mainWidget()); - namesLabel->setAlignment(Qt::AlignRight); - namesLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + namesLabel = new TQLabel(mainWidget()); + namesLabel->setAlignment(TQt::AlignRight); + namesLabel->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Preferred); hbox->addWidget(namesLabel); - namesButton = new QPushButton(i18n("Names Details"), mainWidget()); + namesButton = new TQPushButton(i18n("Names Details"), mainWidget()); hbox->addWidget(namesButton); - assumptionsBox = new QCheckBox(i18n("Custom assumptions:"), mainWidget()); + assumptionsBox = new TQCheckBox(i18n("Custom assumptions:"), mainWidget()); grid->addMultiCellWidget(assumptionsBox, 2, 2, 0, 1); - typeLabel = new QLabel(i18n("Type"), mainWidget()); + typeLabel = new TQLabel(i18n("Type"), mainWidget()); grid->addWidget(typeLabel, 3, 0); typeCombo = new KComboBox(mainWidget()); typeCombo->setMaximumWidth(250); @@ -70,7 +70,7 @@ QalculateEditUnknownVariableDialog::QalculateEditUnknownVariableDialog(QWidget * typeCombo->insertItem(i18n("Rational Number")); typeCombo->insertItem(i18n("Integer")); grid->addWidget(typeCombo, 3, 1); - signLabel = new QLabel(i18n("Sign"), mainWidget()); + signLabel = new TQLabel(i18n("Sign"), mainWidget()); grid->addWidget(signLabel, 4, 0); signCombo = new KComboBox(mainWidget()); signCombo->setMaximumWidth(250); @@ -82,12 +82,12 @@ QalculateEditUnknownVariableDialog::QalculateEditUnknownVariableDialog(QWidget * signCombo->insertItem(i18n("Non-Positive")); signCombo->insertItem(i18n("Non-Zero")); grid->addWidget(signCombo, 4, 1); - grid->addWidget(new QLabel(i18n("Category:"), mainWidget()), 5, 0); + grid->addWidget(new TQLabel(i18n("Category:"), mainWidget()), 5, 0); categoryCombo = new KComboBox(mainWidget()); categoryCombo->setMaximumWidth(250); categoryCombo->setEditable(true); grid->addWidget(categoryCombo, 5, 1); - grid->addWidget(new QLabel(i18n("Descriptive name:"), mainWidget()), 6, 0); + grid->addWidget(new TQLabel(i18n("Descriptive name:"), mainWidget()), 6, 0); titleEdit = new KLineEdit(mainWidget()); grid->addWidget(titleEdit, 6, 1); @@ -98,7 +98,7 @@ QalculateEditUnknownVariableDialog::QalculateEditUnknownVariableDialog(QWidget * connect(typeCombo, SIGNAL(activated(int)), this, SLOT(typeComboActivated(int))); connect(signCombo, SIGNAL(activated(int)), this, SLOT(signComboActivated(int))); connect(namesButton, SIGNAL(clicked()), this, SLOT(editNames())); - connect(nameEdit, SIGNAL(textChanged(const QString&)), this, SLOT(nameChanged(const QString&))); + connect(nameEdit, SIGNAL(textChanged(const TQString&)), this, SLOT(nameChanged(const TQString&))); } @@ -185,7 +185,7 @@ void QalculateEditUnknownVariableDialog::slotOk() { } -UnknownVariable *QalculateEditUnknownVariableDialog::editVariable(QString category, UnknownVariable *v) { +UnknownVariable *QalculateEditUnknownVariableDialog::editVariable(TQString category, UnknownVariable *v) { nameEdit->setFocus(); @@ -207,8 +207,8 @@ UnknownVariable *QalculateEditUnknownVariableDialog::editVariable(QString catego namesLabel->setText(""); - //QStringList cats; - QString catstr; + //TQStringList cats; + TQString catstr; categoryCombo->clear(); tree_struct *item, *item2; variable_cats.it = variable_cats.items.begin(); @@ -275,7 +275,7 @@ UnknownVariable *QalculateEditUnknownVariableDialog::editVariable(QString catego signCombo->setEnabled(!v || (!v->isBuiltin() && v->assumptions())); typeCombo->setEnabled(!v || (!v->isBuiltin() && v->assumptions())); - if(exec() == QDialog::Accepted) { + if(exec() == TQDialog::Accepted) { v = edited_unknown; edited_unknown = NULL; return v; @@ -295,7 +295,7 @@ void QalculateEditUnknownVariableDialog::editNames() { names_edit_dialog->setNamesLE(nameEdit, namesLabel); } -void QalculateEditUnknownVariableDialog::nameChanged(const QString &name) { +void QalculateEditUnknownVariableDialog::nameChanged(const TQString &name) { if(name.isNull()) return; if(!CALCULATOR->variableNameIsValid(name.ascii())) { nameEdit->blockSignals(true); |