diff options
Diffstat (limited to 'src/qalculateconvertnumberbasesdialog.cpp')
-rw-r--r-- | src/qalculateconvertnumberbasesdialog.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/qalculateconvertnumberbasesdialog.cpp b/src/qalculateconvertnumberbasesdialog.cpp index e6b8923..950bd00 100644 --- a/src/qalculateconvertnumberbasesdialog.cpp +++ b/src/qalculateconvertnumberbasesdialog.cpp @@ -20,36 +20,36 @@ #include "qalculateconvertnumberbasesdialog.h" #include "qalculate_tde_utils.h" #include <klocale.h> -#include <qgrid.h> -#include <qlabel.h> +#include <tqgrid.h> +#include <tqlabel.h> #include <klineedit.h> -#include <qpushbutton.h> +#include <tqpushbutton.h> extern EvaluationOptions evalops; -QalculateConvertNumberBasesDialog::QalculateConvertNumberBasesDialog(QWidget *parent, const char *name) +QalculateConvertNumberBasesDialog::QalculateConvertNumberBasesDialog(TQWidget *parent, const char *name) : KDialogBase(parent, name, false, i18n("Number Bases"), Close, Close) { actionButton(Close)->setAutoDefault(false); actionButton(Close)->setDefault(false); - QGrid *grid = makeGridMainWidget(2, Qt::Horizontal); - new QLabel(i18n("Decimal:"), grid); + TQGrid *grid = makeGridMainWidget(2, TQt::Horizontal); + new TQLabel(i18n("Decimal:"), grid); decimalEdit = new KLineEdit(grid); - decimalEdit->setAlignment(Qt::AlignRight); - QObject::connect(decimalEdit, SIGNAL(textChanged(const QString&)), this, SLOT(setDecimalValue(const QString&))); - new QLabel(i18n("Binary:"), grid); + decimalEdit->setAlignment(TQt::AlignRight); + TQObject::connect(decimalEdit, SIGNAL(textChanged(const TQString&)), this, SLOT(setDecimalValue(const TQString&))); + new TQLabel(i18n("Binary:"), grid); binaryEdit = new KLineEdit(grid); - binaryEdit->setAlignment(Qt::AlignRight); - QObject::connect(binaryEdit, SIGNAL(textChanged(const QString&)), this, SLOT(setBinaryValue(const QString&))); - new QLabel(i18n("Octal:"), grid); + binaryEdit->setAlignment(TQt::AlignRight); + TQObject::connect(binaryEdit, SIGNAL(textChanged(const TQString&)), this, SLOT(setBinaryValue(const TQString&))); + new TQLabel(i18n("Octal:"), grid); octalEdit = new KLineEdit(grid); - octalEdit->setAlignment(Qt::AlignRight); - QObject::connect(octalEdit, SIGNAL(textChanged(const QString&)), this, SLOT(setOctalValue(const QString&))); - new QLabel(i18n("Hexadecimal:"), grid); + octalEdit->setAlignment(TQt::AlignRight); + TQObject::connect(octalEdit, SIGNAL(textChanged(const TQString&)), this, SLOT(setOctalValue(const TQString&))); + new TQLabel(i18n("Hexadecimal:"), grid); hexadecimalEdit = new KLineEdit(grid); - hexadecimalEdit->setAlignment(Qt::AlignRight); - QObject::connect(hexadecimalEdit, SIGNAL(textChanged(const QString&)), this, SLOT(setHexadecimalValue(const QString&))); + hexadecimalEdit->setAlignment(TQt::AlignRight); + TQObject::connect(hexadecimalEdit, SIGNAL(textChanged(const TQString&)), this, SLOT(setHexadecimalValue(const TQString&))); decimalEdit->setFocus(); @@ -58,7 +58,7 @@ QalculateConvertNumberBasesDialog::QalculateConvertNumberBasesDialog(QWidget *pa QalculateConvertNumberBasesDialog::~QalculateConvertNumberBasesDialog() {} -void QalculateConvertNumberBasesDialog::setDecimalValue(const QString &qstr) { +void QalculateConvertNumberBasesDialog::setDecimalValue(const TQString &qstr) { string str = qstr.ascii(); remove_blank_ends(str); if(str.empty()) return; @@ -68,7 +68,7 @@ void QalculateConvertNumberBasesDialog::setDecimalValue(const QString &qstr) { MathStructure value = CALCULATOR->calculate(CALCULATOR->unlocalizeExpression(str, evalops.parse_options), eo); updateEntries(&value, 10); } -void QalculateConvertNumberBasesDialog::setBinaryValue(const QString &qstr) { +void QalculateConvertNumberBasesDialog::setBinaryValue(const TQString &qstr) { string str = qstr.ascii(); remove_blank_ends(str); if(str.empty()) return; @@ -79,7 +79,7 @@ void QalculateConvertNumberBasesDialog::setBinaryValue(const QString &qstr) { MathStructure value = CALCULATOR->calculate(CALCULATOR->unlocalizeExpression(str, evalops.parse_options), eo); updateEntries(&value, 2); } -void QalculateConvertNumberBasesDialog::setOctalValue(const QString &qstr) { +void QalculateConvertNumberBasesDialog::setOctalValue(const TQString &qstr) { string str = qstr.ascii(); remove_blank_ends(str); if(str.empty()) return; @@ -90,7 +90,7 @@ void QalculateConvertNumberBasesDialog::setOctalValue(const QString &qstr) { MathStructure value = CALCULATOR->calculate(CALCULATOR->unlocalizeExpression(str, evalops.parse_options), eo); updateEntries(&value, 8); } -void QalculateConvertNumberBasesDialog::setHexadecimalValue(const QString &qstr) { +void QalculateConvertNumberBasesDialog::setHexadecimalValue(const TQString &qstr) { string str = qstr.ascii(); remove_blank_ends(str); if(str.empty()) return; |