summaryrefslogtreecommitdiffstats
path: root/conduits/docconduit/DOC-converter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'conduits/docconduit/DOC-converter.cc')
-rw-r--r--conduits/docconduit/DOC-converter.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/conduits/docconduit/DOC-converter.cc b/conduits/docconduit/DOC-converter.cc
index d983b1c..6502fe5 100644
--- a/conduits/docconduit/DOC-converter.cc
+++ b/conduits/docconduit/DOC-converter.cc
@@ -120,8 +120,8 @@ int docRegExpBookmark::findMatches(TQString doctext, bmkList &fBookmarks)
// TODO: use the subexpressions from the regexp for the bmk name ($1..$9) (given as separate regexp)
TQString bmkText(bmkName);
for (int i=0; i<=rx.numCaptures(); ++i) {
- bmkText.replace(CSL1("$%1").tqarg(i), rx.cap(i));
- bmkText.replace(CSL1("\\%1").tqarg(i), rx.cap(i));
+ bmkText.replace(CSL1("$%1").arg(i), rx.cap(i));
+ bmkText.replace(CSL1("\\%1").arg(i), rx.cap(i));
}
fBookmarks.append(new docBookmark(bmkText.left(16), pos));
}
@@ -195,7 +195,7 @@ TQString DOCConverter::readText() {
TQFile docfile(txtfilename);
if (!docfile.open(IO_ReadOnly))
{
- emit logError(i18n("Unable to open text file %1 for reading.").tqarg(txtfilename));
+ emit logError(i18n("Unable to open text file %1 for reading.").arg(txtfilename));
return TQString();
}
@@ -437,7 +437,7 @@ bool DOCConverter::convertTXTtoPDB() {
#endif
if (!docdb->isOpen()) {
- emit logError(i18n("Unable to open palm doc database %1").tqarg(docdb->dbPathName()) );
+ emit logError(i18n("Unable to open palm doc database %1").arg(docdb->dbPathName()) );
return false;
}
@@ -520,7 +520,7 @@ bool DOCConverter::convertPDBtoTXT()
PilotRecord*headerRec = docdb->readRecordByIndex(0);
if (!headerRec)
{
- emit logError(i18n("Unable to read database header for database %1.").tqarg(docdb->dbPathName()));
+ emit logError(i18n("Unable to read database header for database %1.").arg(docdb->dbPathName()));
KPILOT_DELETE(docdb);
return false;
}
@@ -540,7 +540,7 @@ bool DOCConverter::convertPDBtoTXT()
TQFile docfile(txtfilename);
if (!docfile.open(IO_WriteOnly))
{
- emit logError(i18n("Unable to open output file %1.").tqarg(txtfilename));
+ emit logError(i18n("Unable to open output file %1.").arg(txtfilename));
KPILOT_DELETE(docdb);
return false;
}
@@ -555,7 +555,7 @@ bool DOCConverter::convertPDBtoTXT()
DEBUGKPILOT<<"Record "<<i<<endl;
KPILOT_DELETE(rec);
} else {
- emit logMessage(i18n("Could not read text record #%1 from Database %2").tqarg(i).tqarg(docdb->dbPathName()));
+ emit logMessage(i18n("Could not read text record #%1 from Database %2").arg(i).arg(docdb->dbPathName()));
}
}
@@ -574,7 +574,7 @@ bool DOCConverter::convertPDBtoTXT()
bmks.append(bmk);
KPILOT_DELETE(rec);
} else {
- emit logMessage(i18n("Could not read bookmark record #%1 from Database %2").tqarg(i).tqarg(docdb->dbPathName()));
+ emit logMessage(i18n("Could not read bookmark record #%1 from Database %2").arg(i).arg(docdb->dbPathName()));
}
}
// TODO: Sort the list of bookmarks according to their position
@@ -592,7 +592,7 @@ bool DOCConverter::convertPDBtoTXT()
if (!bmkfile.open(IO_WriteOnly))
{
emit logError(i18n("Unable to open file %1 for the bookmarks of %2.")
- .tqarg(bmkfilename).tqarg(docdb ->dbPathName()));
+ .arg(bmkfilename).arg(docdb ->dbPathName()));
}
else
{