diff options
Diffstat (limited to 'src/qalculateeditfunctiondialog.cpp')
-rw-r--r-- | src/qalculateeditfunctiondialog.cpp | 196 |
1 files changed, 98 insertions, 98 deletions
diff --git a/src/qalculateeditfunctiondialog.cpp b/src/qalculateeditfunctiondialog.cpp index 5bb2e85..2264d55 100644 --- a/src/qalculateeditfunctiondialog.cpp +++ b/src/qalculateeditfunctiondialog.cpp @@ -21,30 +21,30 @@ #include "qalculate_tde_utils.h" #include "qalculateeditnamesdialog.h" -#include <qgrid.h> +#include <tqgrid.h> #include <klineedit.h> #include <kpushbutton.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 <kdeversion.h> #if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 1 -#include <qtextedit.h> +#include <tqtextedit.h> #else #include <ktextedit.h> #endif #include <klistview.h> #if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 2 -#include <qtabwidget.h> +#include <tqtabwidget.h> #else #include <ktabwidget.h> #endif -#include <qheader.h> +#include <tqheader.h> #include <kapplication.h> #include <kstdguiitem.h> @@ -52,7 +52,7 @@ extern PrintOptions printops; extern EvaluationOptions evalops; extern tree_struct function_cats; -QalculateEditFunctionDialog::QalculateEditFunctionDialog(QWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Edit Function"), Ok | Cancel | Help, Ok, false) { +QalculateEditFunctionDialog::QalculateEditFunctionDialog(TQWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Edit Function"), Ok | Cancel | Help, Ok, false) { names_edit_dialog = NULL; subfunctions_edit_dialog = NULL; @@ -60,66 +60,66 @@ QalculateEditFunctionDialog::QalculateEditFunctionDialog(QWidget *parent, const argument_edit_dialog = NULL; #if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 2 - tabs = new QTabWidget(this); + tabs = new TQTabWidget(this); #else tabs = new KTabWidget(this); #endif setMainWidget(tabs); - QWidget *page1 = new QWidget(this); - QWidget *page2 = new QWidget(this); + TQWidget *page1 = new TQWidget(this); + TQWidget *page2 = new TQWidget(this); tabs->addTab(page1, i18n("General")); tabs->addTab(page2, i18n("Function")); - QGridLayout *grid = new QGridLayout(page1, 1, 1, spacingHint()); - QVBoxLayout *vbox = new QVBoxLayout(page2, spacingHint()); - grid->addWidget(new QLabel(i18n("Name:"), page1), 0, 0); + TQGridLayout *grid = new TQGridLayout(page1, 1, 1, spacingHint()); + TQVBoxLayout *vbox = new TQVBoxLayout(page2, spacingHint()); + grid->addWidget(new TQLabel(i18n("Name:"), page1), 0, 0); nameEdit = new KLineEdit(page1); 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(page1); - namesLabel->setAlignment(Qt::AlignRight); - namesLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + namesLabel = new TQLabel(page1); + namesLabel->setAlignment(TQt::AlignRight); + namesLabel->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Preferred); hbox->addWidget(namesLabel); - namesButton = new QPushButton(i18n("Names Details"), page1); + namesButton = new TQPushButton(i18n("Names Details"), page1); hbox->addWidget(namesButton); - grid->addWidget(new QLabel(i18n("Category:"), page1), 2, 0); + grid->addWidget(new TQLabel(i18n("Category:"), page1), 2, 0); categoryCombo = new KComboBox(page1); categoryCombo->setMaximumWidth(250); categoryCombo->setEditable(true); grid->addWidget(categoryCombo, 2, 1); - grid->addWidget(new QLabel(i18n("Descriptive name:"), page1), 3, 0); + grid->addWidget(new TQLabel(i18n("Descriptive name:"), page1), 3, 0); titleEdit = new KLineEdit(page1); grid->addWidget(titleEdit, 3, 1); - hbox = new QHBoxLayout(0, 0, spacingHint()); + hbox = new TQHBoxLayout(0, 0, spacingHint()); grid->addMultiCellLayout(hbox, 4, 4, 0, 1); - hbox->addItem(new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum)); - hideButton = new QCheckBox(i18n("Hide function"), page1); + hbox->addItem(new TQSpacerItem(0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum)); + hideButton = new TQCheckBox(i18n("Hide function"), page1); hbox->addWidget(hideButton); - grid->addWidget(new QLabel(i18n("Description:"), page1), 5, 0); + grid->addWidget(new TQLabel(i18n("Description:"), page1), 5, 0); #if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 1 - descriptionEdit = new QTextEdit(page1); + descriptionEdit = new TQTextEdit(page1); #else descriptionEdit = new KTextEdit(page1); #endif - descriptionEdit->setTextFormat(QTextEdit::PlainText); + descriptionEdit->setTextFormat(TQTextEdit::PlainText); grid->addMultiCellWidget(descriptionEdit, 6, 6, 0, 1); - vbox->addWidget(new QLabel(i18n("Expression:"), page2)); + vbox->addWidget(new TQLabel(i18n("Expression:"), page2)); #if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 1 - expressionEdit = new QTextEdit(page2); + expressionEdit = new TQTextEdit(page2); #else expressionEdit = new KTextEdit(page2); #endif - expressionEdit->setTextFormat(QTextEdit::PlainText); + expressionEdit->setTextFormat(TQTextEdit::PlainText); vbox->addWidget(expressionEdit); - hbox = new QHBoxLayout(vbox, spacingHint()); - hbox->addWidget(new QLabel(i18n("Condition:"), page2)); + hbox = new TQHBoxLayout(vbox, spacingHint()); + hbox->addWidget(new TQLabel(i18n("Condition:"), page2)); conditionEdit = new KLineEdit(page2); hbox->addWidget(conditionEdit); - hbox = new QHBoxLayout(vbox, spacingHint()); - hbox->addItem(new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum)); - subFunctionsButton = new QPushButton(i18n("Sub-Functions"), page2); + hbox = new TQHBoxLayout(vbox, spacingHint()); + hbox->addItem(new TQSpacerItem(0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum)); + subFunctionsButton = new TQPushButton(i18n("Sub-Functions"), page2); hbox->addWidget(subFunctionsButton); - vbox->addWidget(new QLabel(i18n("Arguments:"), page2)); + vbox->addWidget(new TQLabel(i18n("Arguments:"), page2)); argumentsView = new KListView(page2); argumentsView->addColumn(i18n("Name")); argumentsView->addColumn(i18n("Type")); @@ -128,22 +128,22 @@ QalculateEditFunctionDialog::QalculateEditFunctionDialog(QWidget *parent, const argumentsView->setItemsRenameable(true); argumentsView->setItemsMovable(false); vbox->addWidget(argumentsView); - hbox = new QHBoxLayout(vbox, spacingHint()); - hbox->addItem(new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum)); - newArgumentButton = new QPushButton(i18n("New"), page2); + hbox = new TQHBoxLayout(vbox, spacingHint()); + hbox->addItem(new TQSpacerItem(0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum)); + newArgumentButton = new TQPushButton(i18n("New"), page2); hbox->addWidget(newArgumentButton); - editArgumentButton = new QPushButton(i18n("Edit"), page2); + editArgumentButton = new TQPushButton(i18n("Edit"), page2); hbox->addWidget(editArgumentButton); - deleteArgumentButton = new QPushButton(i18n("Delete"), page2); + deleteArgumentButton = new TQPushButton(i18n("Delete"), page2); hbox->addWidget(deleteArgumentButton); connect(namesButton, SIGNAL(clicked()), this, SLOT(editNames())); connect(subFunctionsButton, SIGNAL(clicked()), this, SLOT(editSubFunctions())); - connect(nameEdit, SIGNAL(textChanged(const QString&)), this, SLOT(nameChanged(const QString&))); + connect(nameEdit, SIGNAL(textChanged(const TQString&)), this, SLOT(nameChanged(const TQString&))); connect(newArgumentButton, SIGNAL(clicked()), this, SLOT(newArgument())); connect(editArgumentButton, SIGNAL(clicked()), this, SLOT(editArgument())); connect(deleteArgumentButton, SIGNAL(clicked()), this, SLOT(deleteArgument())); - connect(argumentsView, SIGNAL(itemRenamed(QListViewItem*, const QString&, int)), this, SLOT(argumentRenamed(QListViewItem*, const QString&, int))); + connect(argumentsView, SIGNAL(itemRenamed(TQListViewItem*, const TQString&, int)), this, SLOT(argumentRenamed(TQListViewItem*, const TQString&, int))); connect(argumentsView, SIGNAL(selectionChanged()), this, SLOT(argumentSelectionChanged())); } @@ -156,7 +156,7 @@ void QalculateEditFunctionDialog::slotHelp() { } void QalculateEditFunctionDialog::argumentSelectionChanged() { - QListViewItem *i = argumentsView->selectedItem(); + TQListViewItem *i = argumentsView->selectedItem(); if(i == NULL || (edited_function && edited_function->isBuiltin()) || argumentsItems[i]->type() > ARGUMENT_TYPE_ANGLE) { editArgumentButton->setEnabled(false); deleteArgumentButton->setEnabled(false); @@ -165,7 +165,7 @@ void QalculateEditFunctionDialog::argumentSelectionChanged() { deleteArgumentButton->setEnabled(true); } } -void QalculateEditFunctionDialog::argumentRenamed(QListViewItem *i, const QString &str, int col) { +void QalculateEditFunctionDialog::argumentRenamed(TQListViewItem *i, const TQString &str, int col) { if(!i || col != 0) return; if(col == 0) { if(!argumentsItemsEdited[i]) { @@ -220,7 +220,7 @@ void QalculateEditFunctionDialog::slotOk() { } f->setCondition(CALCULATOR->unlocalizeExpression(conditionEdit->text().ascii(), evalops.parse_options)); size_t index = 1; - QListViewItemIterator it(argumentsView); + TQListViewItemIterator it(argumentsView); while(it.current()) { if(argumentsItemsEdited[it.current()]) { if(f->isBuiltin() && f->getArgumentDefinition(index)) { @@ -267,7 +267,7 @@ void QalculateEditFunctionDialog::slotOk() { } -MathFunction *QalculateEditFunctionDialog::editFunction(QString category, MathFunction *f) { +MathFunction *QalculateEditFunctionDialog::editFunction(TQString category, MathFunction *f) { nameEdit->setFocus(); @@ -290,7 +290,7 @@ MathFunction *QalculateEditFunctionDialog::editFunction(QString category, MathFu setCaption(i18n("New Function")); } - QString catstr; + TQString catstr; categoryCombo->clear(); tree_struct *item, *item2; function_cats.it = function_cats.items.begin(); @@ -364,8 +364,8 @@ MathFunction *QalculateEditFunctionDialog::editFunction(QString category, MathFu if(args < 0) { args = f->minargs() + 1; } - QString str, str2; - QListViewItem *i_prev = NULL; + TQString str, str2; + TQListViewItem *i_prev = NULL; for(int i = 1; i <= args; i++) { arg = f->getArgumentDefinition(i); if(arg) { @@ -377,7 +377,7 @@ MathFunction *QalculateEditFunctionDialog::editFunction(QString category, MathFu str = defarg.printlong().c_str(); str2 = ""; } - QListViewItem *i_new = new KListViewItem(argumentsView, i_prev, str2, str); + TQListViewItem *i_new = new KListViewItem(argumentsView, i_prev, str2, str); i_prev = i_new; argumentsItems[i_new] = arg; argumentsItemsEdited[i_new] = false; @@ -385,12 +385,12 @@ MathFunction *QalculateEditFunctionDialog::editFunction(QString category, MathFu } argumentsView->setResizeMode(KListView::AllColumns); - if(exec() == QDialog::Accepted) { + if(exec() == TQDialog::Accepted) { f = edited_function; edited_function = NULL; return f; } - QListViewItemIterator it(argumentsView); + TQListViewItemIterator it(argumentsView); while(it.current()) { if(argumentsItemsEdited[it.current()]) { delete argumentsItems[it.current()]; @@ -419,13 +419,13 @@ void QalculateEditFunctionDialog::newArgument() { } Argument *arg = argument_edit_dialog->editArgument(); if(arg) { - QListViewItem *i = new KListViewItem(argumentsView, argumentsView->lastChild(), arg->name().c_str(), arg->printlong().c_str()); + TQListViewItem *i = new KListViewItem(argumentsView, argumentsView->lastChild(), arg->name().c_str(), arg->printlong().c_str()); argumentsItems[i] = arg; argumentsItemsEdited[i] = true; } } void QalculateEditFunctionDialog::editArgument() { - QListViewItem *i = argumentsView->selectedItem(); + TQListViewItem *i = argumentsView->selectedItem(); if(i == NULL) return; if(!argument_edit_dialog) { argument_edit_dialog = new QalculateEditArgumentDialog(this); @@ -442,7 +442,7 @@ void QalculateEditFunctionDialog::editArgument() { } } void QalculateEditFunctionDialog::deleteArgument() { - QListViewItem *i = argumentsView->selectedItem(); + TQListViewItem *i = argumentsView->selectedItem(); if(i == NULL) return; if(argumentsItemsEdited[i]) { delete argumentsItems[i]; @@ -462,7 +462,7 @@ void QalculateEditFunctionDialog::editSubFunctions() { subfunctions_edit_dialog->exec(); } -void QalculateEditFunctionDialog::nameChanged(const QString &name) { +void QalculateEditFunctionDialog::nameChanged(const TQString &name) { if(name.isNull()) return; if(!CALCULATOR->functionNameIsValid(name.ascii())) { nameEdit->blockSignals(true); @@ -471,11 +471,11 @@ void QalculateEditFunctionDialog::nameChanged(const QString &name) { } } -QalculateEditSubFunctionsDialog::QalculateEditSubFunctionsDialog(QWidget *parent, const char *name) : KDialog(parent, name, true) { +QalculateEditSubFunctionsDialog::QalculateEditSubFunctionsDialog(TQWidget *parent, const char *name) : KDialog(parent, name, true) { setCaption(i18n("Sub-Functions")); - QVBoxLayout *layout = new QVBoxLayout(this, marginHint(), spacingHint()); + TQVBoxLayout *layout = new TQVBoxLayout(this, marginHint(), spacingHint()); subFunctionsView = new KListView(this); subFunctionsView->addColumn(i18n("Reference")); @@ -488,13 +488,13 @@ QalculateEditSubFunctionsDialog::QalculateEditSubFunctionsDialog(QWidget *parent subFunctionsView->setItemsMovable(false); layout->addWidget(subFunctionsView); - QHBoxLayout *buttonLayout = new QHBoxLayout(layout, spacingHint()); - newButton = new QPushButton(i18n("New"), this); + TQHBoxLayout *buttonLayout = new TQHBoxLayout(layout, spacingHint()); + newButton = new TQPushButton(i18n("New"), this); buttonLayout->addWidget(newButton); - deleteButton = new QPushButton(i18n("Delete"), this); + deleteButton = new TQPushButton(i18n("Delete"), this); deleteButton->setEnabled(false); buttonLayout->addWidget(deleteButton); - buttonLayout->addItem(new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum)); + buttonLayout->addItem(new TQSpacerItem(0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum)); buttonClose = new KPushButton(KStdGuiItem::close(), this); buttonClose->setAutoDefault(true); buttonClose->setDefault(true); @@ -504,18 +504,18 @@ QalculateEditSubFunctionsDialog::QalculateEditSubFunctionsDialog(QWidget *parent connect(buttonClose, SIGNAL(clicked()), this, SLOT(accept())); connect(newButton, SIGNAL(clicked()), this, SLOT(newSubFunction())); connect(deleteButton, SIGNAL(clicked()), this, SLOT(deleteSubFunction())); - connect(subFunctionsView, SIGNAL(clicked(QListViewItem*, const QPoint&, int)), this, SLOT(itemClicked(QListViewItem*, const QPoint&, int))); + connect(subFunctionsView, SIGNAL(clicked(TQListViewItem*, const TQPoint&, int)), this, SLOT(itemClicked(TQListViewItem*, const TQPoint&, int))); } QalculateEditSubFunctionsDialog::~QalculateEditSubFunctionsDialog() {} void QalculateEditSubFunctionsDialog::newSubFunction() { ExpressionName name; - QString str = "\\"; - str += QString::number(subFunctionsView->childCount() + 1); - QListViewItem *i = new KListViewItem(subFunctionsView, subFunctionsView->lastChild(), str, "", i18n("Yes")); + TQString str = "\\"; + str += TQString::number(subFunctionsView->childCount() + 1); + TQListViewItem *i = new KListViewItem(subFunctionsView, subFunctionsView->lastChild(), str, "", i18n("Yes")); subFunctionsView->setSelected(i, true); - qApp->processEvents(); + tqApp->processEvents(); subFunctionsView->rename(i, 1); } @@ -525,12 +525,12 @@ void QalculateEditSubFunctionsDialog::setSubFunctions(UserFunction *f, bool edit subFunctionsView->clear(); } if(!edited && f && f->countSubfunctions() > 0) { - QListViewItem *i_prev = NULL; + TQListViewItem *i_prev = NULL; for(size_t index = 1; index <= f->countSubfunctions(); index++) { - QListViewItem *i = new KListViewItem(subFunctionsView, i_prev); + TQListViewItem *i = new KListViewItem(subFunctionsView, i_prev); i_prev = i; - QString str = "\\"; - str += QString::number(index); + TQString str = "\\"; + str += TQString::number(index); i->setText(0, str); i->setText(1, f->getSubfunction(index).c_str()); if(f->subfunctionPrecalculated(index)) i->setText(2, i18n("Yes")); @@ -540,7 +540,7 @@ void QalculateEditSubFunctionsDialog::setSubFunctions(UserFunction *f, bool edit } void QalculateEditSubFunctionsDialog::saveSubFunctions(UserFunction *f) { f->clearSubfunctions(); - QListViewItemIterator it(subFunctionsView); + TQListViewItemIterator it(subFunctionsView); while(it.current()) { f->addSubfunction(it.current()->text(1).ascii(), it.current()->text(2) == i18n("Yes")); ++it; @@ -552,18 +552,18 @@ bool QalculateEditSubFunctionsDialog::isEmpty() { void QalculateEditSubFunctionsDialog::deleteSubFunction() { subFunctionsView->removeItem(subFunctionsView->selectedItem()); - QListViewItemIterator it(subFunctionsView); + TQListViewItemIterator it(subFunctionsView); int index = 1; while(it.current()) { - QString str = "\\"; - str += QString::number(index); + TQString str = "\\"; + str += TQString::number(index); it.current()->setText(0, str); ++it; index++; } } -void QalculateEditSubFunctionsDialog::itemClicked(QListViewItem *i, const QPoint &, int c) { +void QalculateEditSubFunctionsDialog::itemClicked(TQListViewItem *i, const TQPoint &, int c) { if(i && c == 2) { if(i->text(c) == i18n("Yes")) i->setText(c, i18n("No")); @@ -576,14 +576,14 @@ void QalculateEditSubFunctionsDialog::selectionChanged() { deleteButton->setEnabled(subFunctionsView->selectedItem() != NULL); } -QalculateEditArgumentDialog::QalculateEditArgumentDialog(QWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Edit Argument"), Ok | Cancel, Ok, true) { +QalculateEditArgumentDialog::QalculateEditArgumentDialog(TQWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Edit Argument"), Ok | Cancel, Ok, true) { - 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); - grid->addWidget(new QLabel(i18n("Type:"), mainWidget()), 1, 0); + grid->addWidget(new TQLabel(i18n("Type:"), mainWidget()), 1, 0); typeCombo = new KComboBox(mainWidget()); typeCombo->setEditable(false); typeCombo->insertItem(i18n("Free")); @@ -602,35 +602,35 @@ QalculateEditArgumentDialog::QalculateEditArgumentDialog(QWidget *parent, const typeCombo->insertItem(i18n("File")); typeCombo->insertItem(i18n("Angle")); grid->addWidget(typeCombo, 1, 1); - testButton = new QCheckBox(i18n("Enable rules and type test"), mainWidget()); + testButton = new TQCheckBox(i18n("Enable rules and type test"), mainWidget()); grid->addMultiCellWidget(testButton, 2, 2, 0, 1); - conditionButton = new QCheckBox(i18n("Custom condition:"), mainWidget()); + conditionButton = new TQCheckBox(i18n("Custom condition:"), mainWidget()); grid->addWidget(conditionButton, 3, 0); conditionEdit = new KLineEdit(mainWidget()); grid->addWidget(conditionEdit, 3, 1); - matrixButton = new QCheckBox(i18n("Allow matrix"), mainWidget()); + matrixButton = new TQCheckBox(i18n("Allow matrix"), mainWidget()); grid->addMultiCellWidget(matrixButton, 4, 4, 0, 1); - zeroButton = new QCheckBox(i18n("Forbid zero"), mainWidget()); + zeroButton = new TQCheckBox(i18n("Forbid zero"), mainWidget()); grid->addMultiCellWidget(zeroButton, 5, 5, 0, 1); - complexButton = new QCheckBox(i18n("Allow complex"), mainWidget()); + complexButton = new TQCheckBox(i18n("Allow complex"), mainWidget()); grid->addMultiCellWidget(complexButton, 6, 6, 0, 1); - minButton = new QCheckBox(i18n("Min:"), mainWidget()); + minButton = new TQCheckBox(i18n("Min:"), mainWidget()); grid->addWidget(minButton, 7, 0); minEdit = new KLineEdit(mainWidget()); grid->addWidget(minEdit, 7, 1); - QHBoxLayout *hbox = new QHBoxLayout(0, 0, spacingHint()); + TQHBoxLayout *hbox = new TQHBoxLayout(0, 0, spacingHint()); grid->addMultiCellLayout(hbox, 8, 8, 0, 1); - hbox->addItem(new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum)); - minIncludeEqualsButton = new QCheckBox(i18n("Include equals"), mainWidget()); + hbox->addItem(new TQSpacerItem(0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum)); + minIncludeEqualsButton = new TQCheckBox(i18n("Include equals"), mainWidget()); hbox->addWidget(minIncludeEqualsButton); - maxButton = new QCheckBox(i18n("Max:"), mainWidget()); + maxButton = new TQCheckBox(i18n("Max:"), mainWidget()); grid->addWidget(maxButton, 9, 0); maxEdit = new KLineEdit(mainWidget()); grid->addWidget(maxEdit, 9, 1); - hbox = new QHBoxLayout(0, 0, spacingHint()); + hbox = new TQHBoxLayout(0, 0, spacingHint()); grid->addMultiCellLayout(hbox, 10, 10, 0, 1); - hbox->addItem(new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum)); - maxIncludeEqualsButton = new QCheckBox(i18n("Include equals"), mainWidget()); + hbox->addItem(new TQSpacerItem(0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum)); + maxIncludeEqualsButton = new TQCheckBox(i18n("Include equals"), mainWidget()); hbox->addWidget(maxIncludeEqualsButton); connect(conditionButton, SIGNAL(toggled(bool)), conditionEdit, SLOT(setEnabled(bool))); @@ -738,7 +738,7 @@ Argument *QalculateEditArgumentDialog::editArgument(Argument *arg) { } typeChanged(typeCombo->currentItem()); - if(exec() == QDialog::Accepted) { + if(exec() == TQDialog::Accepted) { switch(typeCombo->currentItem()) { case 1: { arg = new NumberArgument(); |