summaryrefslogtreecommitdiffstats
path: root/src/qalculateexportcsvdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qalculateexportcsvdialog.cpp')
-rw-r--r--src/qalculateexportcsvdialog.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/qalculateexportcsvdialog.cpp b/src/qalculateexportcsvdialog.cpp
index 6134202..4ba91e2 100644
--- a/src/qalculateexportcsvdialog.cpp
+++ b/src/qalculateexportcsvdialog.cpp
@@ -20,40 +20,40 @@
#include "qalculateexportcsvdialog.h"
#include "qalculate_tde_utils.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kurlrequester.h>
#include <klineedit.h>
-#include <qlabel.h>
-#include <qradiobutton.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqradiobutton.h>
+#include <tqpushbutton.h>
#include <kcombobox.h>
-#include <qbuttongroup.h>
+#include <tqbuttongroup.h>
#include <kmessagebox.h>
#include <klocale.h>
#include <kapplication.h>
extern MathStructure *mstruct;
-QalculateExportCSVDialog::QalculateExportCSVDialog(QWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Export CSV File"), Ok | Cancel | Help, Ok, true) {
+QalculateExportCSVDialog::QalculateExportCSVDialog(TQWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Export CSV File"), Ok | Cancel | Help, Ok, true) {
- setMainWidget(new QWidget(this));
- QGridLayout *grid = new QGridLayout(mainWidget(), 1, 1, 0, spacingHint());
- QButtonGroup *group = new QButtonGroup();
- currentResultButton = new QRadioButton(i18n("Current result"), mainWidget());
+ setMainWidget(new TQWidget(this));
+ TQGridLayout *grid = new TQGridLayout(mainWidget(), 1, 1, 0, spacingHint());
+ TQButtonGroup *group = new TQButtonGroup();
+ currentResultButton = new TQRadioButton(i18n("Current result"), mainWidget());
group->insert(currentResultButton, 0);
grid->addWidget(currentResultButton, 0, 0);
currentResultButton->setChecked(true);
- matrixVectorButton = new QRadioButton(i18n("Matrix/vector variable"), mainWidget());
+ matrixVectorButton = new TQRadioButton(i18n("Matrix/vector variable"), mainWidget());
group->insert(matrixVectorButton, 1);
grid->addWidget(matrixVectorButton, 1, 0);
matrixVectorEdit = new KLineEdit(mainWidget());
grid->addWidget(matrixVectorEdit, 1, 1);
- grid->addWidget(new QLabel(i18n("File:"), mainWidget()), 2, 0);
+ grid->addWidget(new TQLabel(i18n("File:"), mainWidget()), 2, 0);
fileEdit = new KURLRequester(mainWidget());
fileEdit->setMode(KFile::File | KFile::ExistingOnly | KFile::LocalOnly);
fileEdit->setCaption(i18n("Export CSV File"));
grid->addWidget(fileEdit, 2, 1);
- grid->addWidget(new QLabel(i18n("Delimiter:"), mainWidget()), 3, 0);
+ grid->addWidget(new TQLabel(i18n("Delimiter:"), mainWidget()), 3, 0);
delimiterCombo = new KComboBox(mainWidget());
delimiterCombo->setMaximumWidth(250);
delimiterCombo->insertItem(i18n("Comma"));
@@ -86,7 +86,7 @@ void QalculateExportCSVDialog::delimiterChanged(int i) {
}
void QalculateExportCSVDialog::slotOk() {
- QString str = fileEdit->url().stripWhiteSpace();
+ TQString str = fileEdit->url().stripWhiteSpace();
if(str.isEmpty()) {
//no name -- open dialog again
fileEdit->setFocus();
@@ -150,7 +150,7 @@ void QalculateExportCSVDialog::slotOk() {
matrix_struct = (MathStructure*) &((KnownVariable*) var)->get();
}
if(!CALCULATOR->exportCSV(*matrix_struct, str.ascii(), delimiter)) {
- QString error_str;
+ TQString error_str;
error_str.sprintf(i18n("Could not export to file \n%s"), str.ascii());
KMessageBox::error(this, error_str);
reject();