summaryrefslogtreecommitdiffstats
path: root/src/exportdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/exportdialog.cpp')
-rw-r--r--src/exportdialog.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/exportdialog.cpp b/src/exportdialog.cpp
index 7ef61a0..f82eede 100644
--- a/src/exportdialog.cpp
+++ b/src/exportdialog.cpp
@@ -35,43 +35,43 @@
#include <kglobal.h>
#include <kconfig.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qwhatsthis.h>
-#include <qtextcodec.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqwhatsthis.h>
+#include <tqtextcodec.h>
using Tellico::ExportDialog;
-ExportDialog::ExportDialog(Export::Format format_, Data::CollPtr coll_, QWidget* parent_, const char* name_)
- : KDialogBase(parent_, name_, true /*modal*/, i18n("Export Options"), Ok|Cancel),
+ExportDialog::ExportDialog(Export::Format format_, Data::CollPtr coll_, TQWidget* tqparent_, const char* name_)
+ : KDialogBase(tqparent_, name_, true /*modal*/, i18n("Export Options"), Ok|Cancel),
m_format(format_), m_coll(coll_), m_exporter(exporter(format_)) {
- QWidget* widget = new QWidget(this);
- QVBoxLayout* topLayout = new QVBoxLayout(widget, 0, spacingHint());
+ TQWidget* widget = new TQWidget(this);
+ TQVBoxLayout* topLayout = new TQVBoxLayout(widget, 0, spacingHint());
- QGroupBox* group1 = new QGroupBox(1, Qt::Horizontal, i18n("Formatting"), widget);
+ TQGroupBox* group1 = new TQGroupBox(1, Qt::Horizontal, i18n("Formatting"), widget);
topLayout->addWidget(group1, 0);
- m_formatFields = new QCheckBox(i18n("Format all fields"), group1);
+ m_formatFields = new TQCheckBox(i18n("Format all fields"), group1);
m_formatFields->setChecked(false);
- QWhatsThis::add(m_formatFields, i18n("If checked, the values of the fields will be "
+ TQWhatsThis::add(m_formatFields, i18n("If checked, the values of the fields will be "
"automatically formatted according to their format type."));
- m_exportSelected = new QCheckBox(i18n("Export selected entries only"), group1);
+ m_exportSelected = new TQCheckBox(i18n("Export selected entries only"), group1);
m_exportSelected->setChecked(false);
- QWhatsThis::add(m_exportSelected, i18n("If checked, only the currently selected entries will "
+ TQWhatsThis::add(m_exportSelected, i18n("If checked, only the currently selected entries will "
"be exported."));
- QButtonGroup* bg = new QButtonGroup(1, Qt::Horizontal, i18n("Encoding"), widget);
+ TQButtonGroup* bg = new TQButtonGroup(1, Qt::Horizontal, i18n("Encoding"), widget);
topLayout->addWidget(bg, 0);
- m_encodeUTF8 = new QRadioButton(i18n("Encode in Unicode (UTF-8)"), bg);
+ m_encodeUTF8 = new TQRadioButton(i18n("Encode in Unicode (UTF-8)"), bg);
m_encodeUTF8->setChecked(true);
- QWhatsThis::add(m_encodeUTF8, i18n("Encode the exported file in Unicode (UTF-8)."));
- QString localStr = i18n("Encode in user locale (%1)").arg(
- QString::fromLatin1(QTextCodec::codecForLocale()->name()));
- m_encodeLocale = new QRadioButton(localStr, bg);
- QWhatsThis::add(m_encodeLocale, i18n("Encode the exported file in the local encoding."));
+ TQWhatsThis::add(m_encodeUTF8, i18n("Encode the exported file in Unicode (UTF-8)."));
+ TQString localStr = i18n("Encode in user locale (%1)").tqarg(
+ TQString::tqfromLatin1(TQTextCodec::codecForLocale()->name()));
+ m_encodeLocale = new TQRadioButton(localStr, bg);
+ TQWhatsThis::add(m_encodeLocale, i18n("Encode the exported file in the local encoding."));
- QWidget* w = m_exporter->widget(widget, "exporter_widget");
+ TQWidget* w = m_exporter->widget(widget, "exporter_widget");
if(w) {
topLayout->addWidget(w, 0);
}
@@ -88,7 +88,7 @@ ExportDialog::ExportDialog(Export::Format format_, Data::CollPtr coll_, QWidget*
} else if(format_ == Export::Alexandria || format_ == Export::PilotDB) {
bg->setEnabled(false);
}
- connect(this, SIGNAL(okClicked()), SLOT(slotSaveOptions()));
+ connect(this, TQT_SIGNAL(okClicked()), TQT_SLOT(slotSaveOptions()));
}
ExportDialog::~ExportDialog() {
@@ -96,8 +96,8 @@ ExportDialog::~ExportDialog() {
m_exporter = 0;
}
-QString ExportDialog::fileFilter() {
- return m_exporter ? m_exporter->fileFilter() : QString::null;
+TQString ExportDialog::fileFilter() {
+ return m_exporter ? m_exporter->fileFilter() : TQString();
}
void ExportDialog::readOptions() {