summaryrefslogtreecommitdiffstats
path: root/src/translators/pilotdbexporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/translators/pilotdbexporter.cpp')
-rw-r--r--src/translators/pilotdbexporter.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/translators/pilotdbexporter.cpp b/src/translators/pilotdbexporter.cpp
index a4f2e72..99727bc 100644
--- a/src/translators/pilotdbexporter.cpp
+++ b/src/translators/pilotdbexporter.cpp
@@ -58,7 +58,7 @@ bool PilotDBExporter::exec() {
TQTextCodec* codec = 0;
{
// Latin1 is default
- KConfigGroup group(KGlobal::config(), TQString::tqfromLatin1("ExportOptions - %1").tqarg(formatString()));
+ KConfigGroup group(KGlobal::config(), TQString::fromLatin1("ExportOptions - %1").tqarg(formatString()));
codec = KGlobal::charsets()->codecForName(group.readEntry("Charset"));
}
if(!codec) {
@@ -153,8 +153,8 @@ bool PilotDBExporter::exec() {
Data::FieldVec::ConstIterator fIt, end = outputFields.constEnd();
bool format = options() & Export::ExportFormatted;
- TQRegExp br(TQString::tqfromLatin1("<br/?>"), false /*case-sensitive*/);
- TQRegExp tags(TQString::tqfromLatin1("<.*>"));
+ TQRegExp br(TQString::fromLatin1("<br/?>"), false /*case-sensitive*/);
+ TQRegExp tags(TQString::fromLatin1("<.*>"));
tags.setMinimal(true);
TQString value;
@@ -167,9 +167,9 @@ bool PilotDBExporter::exec() {
if(fIt->type() == Data::Field::Date) {
TQStringList s = TQStringList::split('-', value, true);
bool ok = true;
- int y = s.count() > 0 ? s[0].toInt(&ok) : TQDate::tqcurrentDate().year();
+ int y = s.count() > 0 ? s[0].toInt(&ok) : TQDate::currentDate().year();
if(!ok) {
- y = TQDate::tqcurrentDate().year();
+ y = TQDate::currentDate().year();
}
int m = s.count() > 1 ? s[1].toInt(&ok) : 1;
if(!ok) {
@@ -180,7 +180,7 @@ bool PilotDBExporter::exec() {
d = 1;
}
TQDate date(y, m, d);
- value = date.toString(TQString::tqfromLatin1("yyyy/MM/dd"));
+ value = date.toString(TQString::fromLatin1("yyyy/MM/dd"));
} else if(fIt->type() == Data::Field::Para) {
value.replace(br, TQChar('\n'));
value.replace(tags, TQString());
@@ -219,12 +219,12 @@ TQWidget* PilotDBExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
}
void PilotDBExporter::readOptions(KConfig* config_) {
- KConfigGroup group(config_, TQString::tqfromLatin1("ExportOptions - %1").tqarg(formatString()));
+ KConfigGroup group(config_, TQString::fromLatin1("ExportOptions - %1").tqarg(formatString()));
m_backup = group.readBoolEntry("Backup", m_backup);
}
void PilotDBExporter::saveOptions(KConfig* config_) {
- KConfigGroup group(config_, TQString::tqfromLatin1("ExportOptions - %1").tqarg(formatString()));
+ KConfigGroup group(config_, TQString::fromLatin1("ExportOptions - %1").tqarg(formatString()));
m_backup = m_checkBackup->isChecked();
group.writeEntry("Backup", m_backup);
}