diff options
Diffstat (limited to 'src/qalculateeditdataobjectdialog.cpp')
-rw-r--r-- | src/qalculateeditdataobjectdialog.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/qalculateeditdataobjectdialog.cpp b/src/qalculateeditdataobjectdialog.cpp index 1179e17..e944e9d 100644 --- a/src/qalculateeditdataobjectdialog.cpp +++ b/src/qalculateeditdataobjectdialog.cpp @@ -19,15 +19,15 @@ ***************************************************************************/ #include "qalculateeditdataobjectdialog.h" #include "qalculate_tde_utils.h" -#include <qlabel.h> -#include <qgrid.h> +#include <tqlabel.h> +#include <tqgrid.h> #include <klineedit.h> #include <kcombobox.h> -#include <qvaluevector.h> -#include <qstring.h> +#include <tqvaluevector.h> +#include <tqstring.h> #include <klocale.h> -QalculateEditDataObjectDialog::QalculateEditDataObjectDialog(QWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Edit Object"), Ok | Cancel, Ok, true) { +QalculateEditDataObjectDialog::QalculateEditDataObjectDialog(TQWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Edit Object"), Ok | Cancel, Ok, true) { } @@ -42,28 +42,28 @@ DataObject *QalculateEditDataObjectDialog::editDataObject(DataSet *ds, DataObjec setCaption(i18n("New Object")); } - QGrid *grid = new QGrid(4, Qt::Horizontal, this); + TQGrid *grid = new TQGrid(4, TQt::Horizontal, this); grid->setSpacing(spacingHint()); setMainWidget(grid); - new QLabel(i18n("Property"), grid); - new QLabel(i18n("Value"), grid); - new QLabel(grid); - new QLabel(i18n("Approximation"), grid); + new TQLabel(i18n("Property"), grid); + new TQLabel(i18n("Value"), grid); + new TQLabel(grid); + new TQLabel(i18n("Approximation"), grid); DataPropertyIter it; DataProperty *dp = ds->getFirstProperty(&it); string sval; - QValueVector<KLineEdit*> value_entries; - QValueVector<KComboBox*> approx_menus; + TQValueVector<KLineEdit*> value_entries; + TQValueVector<KComboBox*> approx_menus; string str; while(dp) { - new QLabel(dp->title().c_str(), grid); + new TQLabel(dp->title().c_str(), grid); KLineEdit *entry = new KLineEdit(grid); value_entries.push_back(entry); int iapprox = -1; if(o) { entry->setText(o->getProperty(dp, &iapprox).c_str()); } - new QLabel(dp->getUnitString().c_str(), grid); + new TQLabel(dp->getUnitString().c_str(), grid); KComboBox *om = new KComboBox(grid); om->setEditable(false); om->insertItem(i18n("Default")); @@ -73,7 +73,7 @@ DataObject *QalculateEditDataObjectDialog::editDataObject(DataSet *ds, DataObjec om->setCurrentItem(iapprox + 1); dp = ds->getNextProperty(&it); } - if(exec() == QDialog::Accepted) { + if(exec() == TQDialog::Accepted) { bool new_object = (o == NULL); if(new_object) { o = new DataObject(ds); @@ -81,7 +81,7 @@ DataObject *QalculateEditDataObjectDialog::editDataObject(DataSet *ds, DataObjec } dp = ds->getFirstProperty(&it); size_t i = 0; - QString val; + TQString val; while(dp) { val = value_entries[i]->text().stripWhiteSpace(); if(!val.isEmpty()) { |