summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/importexport/csv/kexicsvexport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/importexport/csv/kexicsvexport.cpp')
-rw-r--r--kexi/plugins/importexport/csv/kexicsvexport.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kexi/plugins/importexport/csv/kexicsvexport.cpp b/kexi/plugins/importexport/csv/kexicsvexport.cpp
index 5af3d8ed..f3347676 100644
--- a/kexi/plugins/importexport/csv/kexicsvexport.cpp
+++ b/kexi/plugins/importexport/csv/kexicsvexport.cpp
@@ -55,12 +55,12 @@ bool Options::assign( TQMap<TQString,TQString>& args )
mode = (args["destinationType"]=="file")
? KexiCSVExport::File : KexiCSVExport::Clipboard;
- if (args.tqcontains("delimiter"))
+ if (args.contains("delimiter"))
delimiter = args["delimiter"];
else
delimiter = (mode==File) ? KEXICSV_DEFAULT_FILE_DELIMITER : KEXICSV_DEFAULT_CLIPBOARD_DELIMITER;
- if (args.tqcontains("textQuote"))
+ if (args.contains("textQuote"))
textQuote = args["textQuote"];
else
textQuote = (mode==File) ? KEXICSV_DEFAULT_FILE_TEXT_TQUOTE : KEXICSV_DEFAULT_CLIPBOARD_TEXT_TQUOTE;
@@ -69,9 +69,9 @@ bool Options::assign( TQMap<TQString,TQString>& args )
itemId = args["itemId"].toInt(&ok);
if (!ok || itemId<=0)
return false;
- if (args.tqcontains("forceDelimiter"))
+ if (args.contains("forceDelimiter"))
forceDelimiter = args["forceDelimiter"];
- if (args.tqcontains("addColumnNames"))
+ if (args.contains("addColumnNames"))
addColumnNames = (args["addColumnNames"]=="1");
return true;
}
@@ -193,7 +193,7 @@ bool KexiCSVExport::exportData(KexiDB::TableOrQuerySchema& tableOrQuery,
if (i>0)
APPEND( delimiter );
if (hasTextQuote){
- APPEND( textQuote + fields[i]->captionOrAliasOrName().tqreplace(textQuote, escapedTextQuote) + textQuote );
+ APPEND( textQuote + fields[i]->captionOrAliasOrName().replace(textQuote, escapedTextQuote) + textQuote );
}
else {
APPEND( fields[i]->captionOrAliasOrName() );
@@ -218,7 +218,7 @@ bool KexiCSVExport::exportData(KexiDB::TableOrQuerySchema& tableOrQuery,
continue;
if (isText[real_i]) {
if (hasTextQuote)
- APPEND( textQuote + TQString(cursor->value(real_i).toString()).tqreplace(textQuote, escapedTextQuote) + textQuote );
+ APPEND( textQuote + TQString(cursor->value(real_i).toString()).replace(textQuote, escapedTextQuote) + textQuote );
else
APPEND( cursor->value(real_i).toString() );
}