diff --git a/conduits/abbrowserconduit/KPilotCustomFieldEditor.ui b/conduits/abbrowserconduit/KPilotCustomFieldEditor.ui
index 50a2b14..ba3b204 100644
--- a/conduits/abbrowserconduit/KPilotCustomFieldEditor.ui
+++ b/conduits/abbrowserconduit/KPilotCustomFieldEditor.ui
@@ -141,7 +141,7 @@
If you let KPilot sync the handheld's custom fields as custom fields on the PC, you can change the values here. Note, however, that for all other settings the values entered here will have no effect.
-
+
WordBreak|AlignVCenter
@@ -225,7 +225,7 @@
These values indicate the state of the record for KPilot, and connect an entry on the handheld with an entry on the PC.
Do NOT change these values: doing so will almost certainly result in data loss when you next do a sync.
-
+
WordBreak|AlignVCenter
diff --git a/conduits/abbrowserconduit/abbrowser-conduit.cc b/conduits/abbrowserconduit/abbrowser-conduit.cc
index 59dc242..8ccb9a2 100644
--- a/conduits/abbrowserconduit/abbrowser-conduit.cc
+++ b/conduits/abbrowserconduit/abbrowser-conduit.cc
@@ -291,7 +291,7 @@ bool AbbrowserConduit::_loadAddressBook()
emit logError(i18n("You chose to sync with the file \"%1\", which "
"cannot be opened. Please make sure to supply a "
"valid file name in the conduit's configuration dialog. "
- "Aborting the conduit.").tqarg(AbbrowserSettings::fileName()));
+ "Aborting the conduit.").arg(AbbrowserSettings::fileName()));
KIO::NetAccess::removeTempFile(fABookFile);
stopTickle();
return false;
@@ -395,7 +395,7 @@ bool AbbrowserConduit::_saveAddressBook()
if(!KIO::NetAccess::upload(fABookFile, AbbrowserSettings::fileName(), 0L)) {
emit logError(i18n("An error occurred while uploading \"%1\". You can try to upload "
"the temporary local file \"%2\" manually")
- .tqarg(AbbrowserSettings::fileName()).tqarg(fABookFile));
+ .arg(AbbrowserSettings::fileName()).arg(fABookFile));
}
else {
KIO::NetAccess::removeTempFile(fABookFile);
diff --git a/conduits/abbrowserconduit/kaddressbookConduit.ui b/conduits/abbrowserconduit/kaddressbookConduit.ui
index 7227cc7..e942d8e 100644
--- a/conduits/abbrowserconduit/kaddressbookConduit.ui
+++ b/conduits/abbrowserconduit/kaddressbookConduit.ui
@@ -225,7 +225,7 @@
<p>Select the default action if an event was modified on both sides here. </p>
-
+
WordBreak|AlignJustify|AlignVCenter
diff --git a/conduits/abbrowserconduit/resolutionDialog.cc b/conduits/abbrowserconduit/resolutionDialog.cc
index 34e1fb4..89b18f4 100644
--- a/conduits/abbrowserconduit/resolutionDialog.cc
+++ b/conduits/abbrowserconduit/resolutionDialog.cc
@@ -159,7 +159,7 @@ void ResolutionCheckListItem::setCaption(TQString caption)
void ResolutionCheckListItem::updateText()
{
- TQString newText(i18n("Entries in the resolution dialog. First the name of the field, then the entry from the Handheld or PC after the colon", "%1: %2").tqarg(fCaption).tqarg(fText));
+ TQString newText(i18n("Entries in the resolution dialog. First the name of the field, then the entry from the Handheld or PC after the colon", "%1: %2").arg(fCaption).arg(fText));
newText.replace(TQRegExp(CSL1("\n")),
i18n("Denoting newlines in Address entries. No need to translate", " | "));
setText(0, newText);
diff --git a/conduits/abbrowserconduit/resolutionDialog_base.ui b/conduits/abbrowserconduit/resolutionDialog_base.ui
index c76ca26..b756a41 100644
--- a/conduits/abbrowserconduit/resolutionDialog_base.ui
+++ b/conduits/abbrowserconduit/resolutionDialog_base.ui
@@ -26,7 +26,7 @@
The following record was edited both on the handheld and on the PC. Please choose which values shall be synced:
-
+
WordBreak|AlignVCenter
@@ -62,7 +62,7 @@
Line breaks in any of the entries are denoted by a " | " (without the quotes).
-
+
WordBreak|AlignVCenter
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 "<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
{
diff --git a/conduits/docconduit/doc-conduit.cc b/conduits/docconduit/doc-conduit.cc
index 287b443..31a075b 100644
--- a/conduits/docconduit/doc-conduit.cc
+++ b/conduits/docconduit/doc-conduit.cc
@@ -378,10 +378,10 @@ bool DOCConduit::doSync(docSyncInfo &sinfo)
if (!postSyncAction(database, sinfo, res))
emit logError(i18n("Unable to install the locally created PalmDOC %1 to the handheld.")
- .tqarg(TQString::fromLatin1(sinfo.dbinfo.name)));
+ .arg(TQString::fromLatin1(sinfo.dbinfo.name)));
if (!res)
emit logError(i18n("Conversion of PalmDOC \"%1\" failed.")
- .tqarg(TQString::fromLatin1(sinfo.dbinfo.name)));
+ .arg(TQString::fromLatin1(sinfo.dbinfo.name)));
// disconnect(&docconverter, TQT_SIGNAL(logError(const TQString &)), TQT_SIGNAL(logError(const TQString &)));
// disconnect(&docconverter, TQT_SIGNAL(logMessage(const TQString &)), TQT_SIGNAL(logMessage(const TQString &)));
// KPILOT_DELETE(database);
@@ -389,7 +389,7 @@ bool DOCConduit::doSync(docSyncInfo &sinfo)
else
{
emit logError(i18n("Unable to open or create the database %1.")
- .tqarg(TQString::fromLatin1(sinfo.dbinfo.name)));
+ .arg(TQString::fromLatin1(sinfo.dbinfo.name)));
}
return res;
}
@@ -665,7 +665,7 @@ void DOCConduit::syncDatabases() {
case eSyncDelete:
case eSyncPDAToPC:
case eSyncPCToPDA:
- emit logMessage(i18n("Synchronizing text \"%1\"").tqarg(sinfo.handheldDB));
+ emit logMessage(i18n("Synchronizing text \"%1\"").arg(sinfo.handheldDB));
if (!doSync(sinfo)) {
// The sync could not be done, so inform the user (the error message should probably issued inside doSync)
#ifdef DEBUG
diff --git a/conduits/docconduit/doc-conflictdialog.cc b/conduits/docconduit/doc-conflictdialog.cc
index beb6749..9c9e034 100644
--- a/conduits/docconduit/doc-conflictdialog.cc
+++ b/conduits/docconduit/doc-conflictdialog.cc
@@ -168,9 +168,9 @@ void ResolutionDialog::slotInfo(int index) {
int ix=cE.index;
if (!syncInfo) return;
docSyncInfo si=(*syncInfo)[ix];
- TQString text=i18n("Status of the database %1:\n\n").tqarg(si.handheldDB);
- text+=i18n("Handheld: %1\n").tqarg(eTexStatusToString(si.fPalmStatus));
- text+=i18n("Desktop: %1\n").tqarg(eTexStatusToString(si.fPCStatus));
+ TQString text=i18n("Status of the database %1:\n\n").arg(si.handheldDB);
+ text+=i18n("Handheld: %1\n").arg(eTexStatusToString(si.fPalmStatus));
+ text+=i18n("Desktop: %1\n").arg(eTexStatusToString(si.fPCStatus));
KMessageBox::information(this, text, i18n("Database information"));
}
diff --git a/conduits/docconduit/kpalmdoc_dlg.cc b/conduits/docconduit/kpalmdoc_dlg.cc
index 728c2c3..20e8d2f 100644
--- a/conduits/docconduit/kpalmdoc_dlg.cc
+++ b/conduits/docconduit/kpalmdoc_dlg.cc
@@ -175,8 +175,8 @@ void ConverterDlg::slotToText()
int res=KMessageBox::questionYesNo(this,
i18n("You selected to sync folders, "
"but gave a filename instead (%1)."
- "
Use folder %2 instead?").tqarg(pdburl)
- .tqarg(pdbinfo.dirPath(true)), TQString(), i18n("Use Folder"), KStdGuiItem::cancel());
+ "
Use folder %2 instead?").arg(pdburl)
+ .arg(pdbinfo.dirPath(true)), TQString(), i18n("Use Folder"), KStdGuiItem::cancel());
if (res==KMessageBox::Yes)
{
pdburl=pdbinfo.dirPath(true);
@@ -191,7 +191,7 @@ void ConverterDlg::slotToText()
KMessageBox::sorry(this,
i18n("The folder %1 for "
"the handheld database files is not a valid "
- "folder.").tqarg(pdburl));
+ "folder.").arg(pdburl));
return;
}
@@ -200,7 +200,7 @@ void ConverterDlg::slotToText()
KMessageBox::sorry(this,
i18n("The folder %1 for "
"the handheld database files is not a "
- "valid directory.").tqarg(pdburl));
+ "valid directory.").arg(pdburl));
return;
}
@@ -211,8 +211,8 @@ void ConverterDlg::slotToText()
int res=KMessageBox::questionYesNo(this,
i18n("You selected to sync folders, "
"but gave a filename instead (%1)."
- "
Use folder %2 instead?").tqarg(txturl)
- .tqarg(txtinfo.dirPath(true)), TQString(), i18n("Use Folder"), KStdGuiItem::cancel());
+ "
Use folder %2 instead?").arg(txturl)
+ .arg(txtinfo.dirPath(true)), TQString(), i18n("Use Folder"), KStdGuiItem::cancel());
if (res==KMessageBox::Yes) {
txturl=txtinfo.dirPath(true);
txtinfo.setFile(txturl);
@@ -227,7 +227,7 @@ void ConverterDlg::slotToText()
if (!txtinfo.isDir()) {
KMessageBox::sorry(this,
i18n("The folder %1 for "
- "the text files could not be created.").tqarg(txturl));
+ "the text files could not be created.").arg(txturl));
return;
}
@@ -265,7 +265,7 @@ void ConverterDlg::slotToText()
if (!pdbinfo.isFile() || !pdbinfo.exists())
{
KMessageBox::sorry(this, i18n("The file %1 does not "
- "exist.").tqarg(pdburl));
+ "exist.").arg(pdburl));
return;
}
@@ -274,13 +274,13 @@ void ConverterDlg::slotToText()
if (!txtinfo.isFile())
{
KMessageBox::sorry(this, i18n("The filename %1 for the "
- "text is not a valid filename.").tqarg(txturl));
+ "text is not a valid filename.").arg(txturl));
return;
}*/
if (convertPDBtoTXT(pdbinfo.dirPath(true), pdbinfo.fileName(),
txtinfo.dirPath(true), txtinfo.fileName(), &conv) )
{
- KMessageBox::information(this, i18n("Conversion of file %1 successful.").tqarg(pdburl));
+ KMessageBox::information(this, i18n("Conversion of file %1 successful.").arg(pdburl));
}
}
@@ -324,8 +324,8 @@ void ConverterDlg::slotToPDB()
int res=KMessageBox::questionYesNo(this,
i18n("You selected to sync folders, "
"but gave a filename instead (%1)."
- "
Use folder %2 instead?").tqarg(txturl)
- .tqarg(txtinfo.dirPath(true)), TQString(), i18n("Use Folder"), KStdGuiItem::cancel());
+ "
Use folder %2 instead?").arg(txturl)
+ .arg(txtinfo.dirPath(true)), TQString(), i18n("Use Folder"), KStdGuiItem::cancel());
if (res==KMessageBox::Yes)
{
txturl=txtinfo.dirPath(true);
@@ -338,7 +338,7 @@ void ConverterDlg::slotToPDB()
{
KMessageBox::sorry(this,
i18n("The folder %1 for "
- "the text files is not a valid folder.").tqarg(txturl));
+ "the text files is not a valid folder.").arg(txturl));
return;
}
@@ -350,8 +350,8 @@ void ConverterDlg::slotToPDB()
i18n("You selected to sync folders, "
"but gave a filename instead (%1)."
"
Use folder %2 instead?")
- .tqarg(pdburl)
- .tqarg(pdbinfo.dirPath(true)), TQString(), i18n("Use Folder"), KStdGuiItem::cancel());
+ .arg(pdburl)
+ .arg(pdbinfo.dirPath(true)), TQString(), i18n("Use Folder"), KStdGuiItem::cancel());
if (res==KMessageBox::Yes) {
pdburl=pdbinfo.dirPath(true);
pdbinfo.setFile(pdburl);
@@ -365,7 +365,7 @@ void ConverterDlg::slotToPDB()
}
if (!pdbinfo.isDir()) {
KMessageBox::sorry(this, i18n("The folder %1 for "
- "the PalmDOC files could not be created.").tqarg(pdburl));
+ "the PalmDOC files could not be created.").arg(pdburl));
return;
}
@@ -403,14 +403,14 @@ void ConverterDlg::slotToPDB()
if (!txtinfo.isFile() || !txtinfo.exists())
{
KMessageBox::sorry(this, i18n("The file %1 does not "
- "exist.").tqarg(txturl));
+ "exist.").arg(txturl));
return;
}
if (convertTXTtoPDB(txtinfo.dirPath(true), txtinfo.fileName(),
pdbinfo.dirPath(true), pdbinfo.fileName(), &conv) )
{
- KMessageBox::information(this, i18n("Conversion of file %1 successful.").tqarg(txturl));
+ KMessageBox::information(this, i18n("Conversion of file %1 successful.").arg(txturl));
}
}
@@ -454,7 +454,7 @@ bool ConverterDlg::convertTXTtoPDB(TQString txtdir, TQString txtfile,
if (!dbfileinfo.exists() || !askOverwrite ||
(KMessageBox::Yes==KMessageBox::questionYesNo(this,
i18n("The database file %1 already exists. Overwrite it?")
- .tqarg(dbfileinfo.filePath()), TQString(), i18n("Overwrite"), KStdGuiItem::cancel() ) ))
+ .arg(dbfileinfo.filePath()), TQString(), i18n("Overwrite"), KStdGuiItem::cancel() ) ))
{
PilotLocalDatabase*pdbdb=new PilotLocalDatabase(pdbdir, TQFileInfo(pdbfile).baseName(), false);
if (pdbdb)
@@ -479,7 +479,7 @@ bool ConverterDlg::convertTXTtoPDB(TQString txtdir, TQString txtfile,
}
if ( !res && verbose )
{
- KMessageBox::sorry(this, i18n("Error while converting the text %1.").tqarg(txtfile));
+ KMessageBox::sorry(this, i18n("Error while converting the text %1.").arg(txtfile));
}
}
else
@@ -499,7 +499,7 @@ bool ConverterDlg::convertPDBtoTXT(TQString pdbdir, TQString pdbfile,
if (!txtfileinfo.exists() || !askOverwrite ||
(KMessageBox::Yes==KMessageBox::questionYesNo(this,
i18n("The text file %1 already exists. Overwrite it?")
- .tqarg(txtfileinfo.filePath()), TQString(), i18n("Overwrite"), KStdGuiItem::cancel() ) ))
+ .arg(txtfileinfo.filePath()), TQString(), i18n("Overwrite"), KStdGuiItem::cancel() ) ))
{
PilotLocalDatabase*pdbdb=new PilotLocalDatabase(pdbdir, TQFileInfo(pdbfile).baseName(), false);
if (pdbdb)
@@ -515,7 +515,7 @@ bool ConverterDlg::convertPDBtoTXT(TQString pdbdir, TQString pdbfile,
}
if ( !res && verbose )
{
- KMessageBox::sorry(this, i18n("Error while converting the text %1.").tqarg(pdbfile));
+ KMessageBox::sorry(this, i18n("Error while converting the text %1.").arg(pdbfile));
}
}
else
diff --git a/conduits/knotes/knotes-action.cc b/conduits/knotes/knotes-action.cc
index 08acbac..ca32913 100644
--- a/conduits/knotes/knotes-action.cc
+++ b/conduits/knotes/knotes-action.cc
@@ -79,7 +79,7 @@ public:
int memo() const { return memoId; } ;
KNoteID_t note() const { return noteId; } ;
inline bool valid() const { return (memoId>0) && (!noteId.isEmpty()) ; } ;
- TQString toString() const { return CSL1("<%1,%2>").tqarg(noteId).tqarg(memoId); } ;
+ TQString toString() const { return CSL1("<%1,%2>").arg(noteId).arg(memoId); } ;
static NoteAndMemo findNote(const TQValueList &,KNoteID_pt note);
static NoteAndMemo findMemo(const TQValueList &,int memo);
@@ -269,7 +269,7 @@ bool KNotesAction::openKNotesResource()
}
else
{
- emit logError( i18n("Could not load the resource at: %1").tqarg(mURL.path()) );
+ emit logError( i18n("Could not load the resource at: %1").arg(mURL.path()) );
return false;
}
}
@@ -853,18 +853,18 @@ void KNotesAction::cleanupMemos()
case Init : return CSL1("Init");
case NewNotesToPilot :
return CSL1("NewNotesToPilot key=%1");
- // TODO DCOP_REMOVAL .tqarg(fP->fIndex.key());
+ // TODO DCOP_REMOVAL .arg(fP->fIndex.key());
case ModifiedNotesToPilot :
return CSL1("ModifiedNotesToPilot key=%1");
- //TODO DCOP_REMOVAL .tqarg(fP->fIndex.key());
+ //TODO DCOP_REMOVAL .arg(fP->fIndex.key());
case MemosToKNotes :
return CSL1("MemosToKNotes rec=%1")
- .tqarg(fP->fRecordIndex);
+ .arg(fP->fRecordIndex);
case Cleanup : return CSL1("Cleanup");
case Done :
return CSL1("Done");
default :
- return CSL1("Unknown (%1)").tqarg(fActionStatus);
+ return CSL1("Unknown (%1)").arg(fActionStatus);
}
}
diff --git a/conduits/malconduit/mal-conduit.cc b/conduits/malconduit/mal-conduit.cc
index a8d9dec..5aa5883 100644
--- a/conduits/malconduit/mal-conduit.cc
+++ b/conduits/malconduit/mal-conduit.cc
@@ -217,7 +217,7 @@ bool MALConduit::skip()
syncMessage = i18n("No proxy server is set.");
break;
}
- syncMessage = i18n("Using proxy server: %1").tqarg(proxyServer);
+ syncMessage = i18n("Using proxy server: %1").arg(proxyServer);
#ifdef DEBUG
DEBUGKPILOT<<" Using HTTP proxy server \""<setStartCount(_memofiles->count());
setFirstSync( _memofiles->isFirstSync() );
- addSyncLogEntry(i18n(" Syncing with %1.").tqarg(_memo_directory));
+ addSyncLogEntry(i18n(" Syncing with %1.").arg(_memo_directory));
if ( (syncMode() == SyncAction::SyncMode::eCopyHHToPC) || _memofiles->isFirstSync() ) {
addSyncLogEntry(i18n(" Copying Pilot to PC..."));
diff --git a/conduits/notepadconduit/notepad-conduit.cc b/conduits/notepadconduit/notepad-conduit.cc
index 942dbd3..10d9bf7 100644
--- a/conduits/notepadconduit/notepad-conduit.cc
+++ b/conduits/notepadconduit/notepad-conduit.cc
@@ -76,7 +76,7 @@ NotepadConduit::~NotepadConduit()
TQDir dir(NotepadConduitSettings::outputDirectory());
if(!dir.exists() && !dir.mkdir(dir.path())) {
- emit logError(i18n("Unable to open %1").tqarg(dir.path()));
+ emit logError(i18n("Unable to open %1").arg(dir.path()));
delayDone();
return false;
}
@@ -251,7 +251,7 @@ void NotepadActionThread::saveImage(struct NotePad *n)
n->changeDate.min,
n->changeDate.sec);
}
- TQString imgname = TQString("%1/%2.png").tqarg(NotepadConduitSettings::outputDirectory()).tqarg(filename);
+ TQString imgname = TQString("%1/%2.png").arg(NotepadConduitSettings::outputDirectory()).arg(filename);
#ifdef DEBUG
diff --git a/conduits/sysinfoconduit/sysinfo-conduit.cc b/conduits/sysinfoconduit/sysinfo-conduit.cc
index 372fbd2..5ed758f 100644
--- a/conduits/sysinfoconduit/sysinfo-conduit.cc
+++ b/conduits/sysinfoconduit/sysinfo-conduit.cc
@@ -299,10 +299,10 @@ void SysInfoConduit::storageInfo()
const KPilotCard *device = fHandle->getCardInfo(1);
if (device) {
fValues[CSL1("cards")] = CSL1("%1 (%2, %3 kB of %3 kB free)")
- .tqarg(TQString::fromLatin1(device->getCardName()))
- .tqarg(TQString::fromLatin1(device->getCardManufacturer()))
- .tqarg(device->getRamFree()/1024)
- .tqarg(device->getRamSize()/1024);
+ .arg(TQString::fromLatin1(device->getCardName()))
+ .arg(TQString::fromLatin1(device->getCardManufacturer()))
+ .arg(device->getRamFree()/1024)
+ .arg(device->getRamSize()/1024);
KPILOT_DELETE(device);
} else {
fValues[CSL1("cards")] = i18n("No Cards available via pilot-link");
@@ -408,10 +408,10 @@ void SysInfoConduit::pcVersionInfo()
struct utsname name;
if (uname (&name) >= 0) {
fValues[CSL1("os")] = CSL1("%1 %3, %5")
- .tqarg(TQString::fromLatin1(name.sysname))
- .tqarg(TQString::fromLatin1(name.release))
- .tqarg(TQString::fromLatin1(name.machine));
- fValues[CSL1("hostname")] = CSL1("%2").tqarg(TQString::fromLatin1(name.nodename));
+ .arg(TQString::fromLatin1(name.sysname))
+ .arg(TQString::fromLatin1(name.release))
+ .arg(TQString::fromLatin1(name.machine));
+ fValues[CSL1("hostname")] = CSL1("%2").arg(TQString::fromLatin1(name.nodename));
}
#ifdef TDE_VERSION_STRING
fValues[CSL1("kde")] = TQString::fromLatin1(TDE_VERSION_STRING);
@@ -420,13 +420,13 @@ void SysInfoConduit::pcVersionInfo()
fValues[CSL1("qt")] = TQString::fromLatin1(TQT_VERSION_STR);
#endif
fValues[CSL1("pilotlink")] = CSL1("%1.%2.%3%4")
- .tqarg(PILOT_LINK_VERSION)
- .tqarg(PILOT_LINK_MAJOR)
- .tqarg(PILOT_LINK_MINOR)
+ .arg(PILOT_LINK_VERSION)
+ .arg(PILOT_LINK_MAJOR)
+ .arg(PILOT_LINK_MINOR)
#ifdef PILOT_LINK_PATCH
- .tqarg(TQString::fromLatin1(PILOT_LINK_PATCH));
+ .arg(TQString::fromLatin1(PILOT_LINK_PATCH));
#else
- .tqarg(TQString());
+ .arg(TQString());
#endif
keepParts.append(CSL1("pcversion"));
} else removeParts.append(CSL1("pcversion"));
@@ -441,12 +441,12 @@ void SysInfoConduit::palmVersionInfo()
* - #palmos#
*/
/* fValues["palmos"] = TQString("PalmOS %1.%2 (compat %3.%4)")
- .tqarg(fHandle->getSysInfo()->getMajorVersion())
- .tqarg(fHandle->getSysInfo()->getMinorVersion())
- .tqarg(fHandle->getSysInfo()->getCompatMajorVersion())
- .tqarg(fHandle->getSysInfo()->getCompatMinorVersion());*/
+ .arg(fHandle->getSysInfo()->getMajorVersion())
+ .arg(fHandle->getSysInfo()->getMinorVersion())
+ .arg(fHandle->getSysInfo()->getCompatMajorVersion())
+ .arg(fHandle->getSysInfo()->getCompatMinorVersion());*/
KPilotSysInfo i = deviceLink()->getSysInfo();
- fValues[CSL1("palmos")] = CSL1("PalmOS %1.%2").tqarg(i.getMajorVersion()).tqarg(i.getMinorVersion());
+ fValues[CSL1("palmos")] = CSL1("PalmOS %1.%2").arg(i.getMajorVersion()).arg(i.getMinorVersion());
keepParts.append(CSL1("palmversion"));
} else removeParts.append(CSL1("palmversion"));
@@ -513,12 +513,12 @@ void SysInfoConduit::writeFile()
// Remove all parts not extracted
for ( TQStringList::Iterator it = removeParts.begin(); it != removeParts.end(); ++it ) {
- TQRegExp re(CSL1("").tqarg(*it).tqarg(*it));
+ TQRegExp re(CSL1("").arg(*it).arg(*it));
re.setMinimal(true);
output.remove(re);
}
for ( TQStringList::Iterator it = keepParts.begin(); it != keepParts.end(); ++it ) {
- TQRegExp re(CSL1("").tqarg(*it).tqarg(*it));
+ TQRegExp re(CSL1("").arg(*it).arg(*it));
re.setMinimal(true);
output.replace(re, CSL1("\\1"));
}
@@ -526,7 +526,7 @@ void SysInfoConduit::writeFile()
// Do a loop through all keys in fValues
TQMap::Iterator it;
for ( it = fValues.begin(); it != fValues.end(); ++it ) {
- output.replace(CSL1("#%1#").tqarg(it.key()), it.data());
+ output.replace(CSL1("#%1#").arg(it.key()), it.data());
}
// Insert the list of databases
@@ -584,11 +584,11 @@ void SysInfoConduit::writeFile()
TQFileInfo fi(TQDir::home(), CSL1("KPilotSysInfo.")+TQFileInfo(templatefile).extension() );
fOutputFile=fi.absFilePath();
WARNINGKPILOT << "Unable to open output file, using " << fOutputFile << " instead." << endl;
- emit logMessage(i18n("Unable to open output file, using %1 instead.").tqarg(fOutputFile));
+ emit logMessage(i18n("Unable to open output file, using %1 instead.").arg(fOutputFile));
outfile.setName(fOutputFile);
if (!outfile.open(IO_WriteOnly)) {
WARNINGKPILOT<< "Unable to open " << fOutputFile << endl;
- emit logError(i18n("Unable to open %1").tqarg(fOutputFile));
+ emit logError(i18n("Unable to open %1").arg(fOutputFile));
TQTimer::singleShot(0, this, TQT_SLOT(cleanup()));
return;
}
@@ -599,7 +599,7 @@ void SysInfoConduit::writeFile()
outstream<
-
+
WordBreak|AlignVCenter
diff --git a/kpilot/kpilotConfigWizard_user.ui b/kpilot/kpilotConfigWizard_user.ui
index cb42fd0..057eb0d 100644
--- a/kpilot/kpilotConfigWizard_user.ui
+++ b/kpilot/kpilotConfigWizard_user.ui
@@ -23,7 +23,7 @@
This wizard will help you configure KPilot.
-
+
WordBreak|AlignVCenter
@@ -34,7 +34,7 @@
As a first step, we need to determine the user name and how the handheld is connected to the computer.
-
+
WordBreak|AlignVCenter
diff --git a/kpilot/kpilotProbeDialog.cc b/kpilot/kpilotProbeDialog.cc
index 3c163b1..2493386 100644
--- a/kpilot/kpilotProbeDialog.cc
+++ b/kpilot/kpilotProbeDialog.cc
@@ -285,7 +285,7 @@ void ProbeDialog::connection( KPilotDeviceLink*lnk)
mUserName = usr.name();
mDevice = mActiveLink->pilotPath();
- fStatus->setText( i18n("Found a connected device on %1").tqarg(mDevice) );
+ fStatus->setText( i18n("Found a connected device on %1").arg(mDevice) );
fUser->setText( mUserName );
fDevice->setText( mDevice );
mDetected = true;
diff --git a/kpilot/listCat.cc b/kpilot/listCat.cc
index a5bf4f2..64088c5 100644
--- a/kpilot/listCat.cc
+++ b/kpilot/listCat.cc
@@ -247,13 +247,13 @@ void RichListViewItem::computeHeight(int c)
const TQColorGroup &gc,
int column,
int width,
- int tqalignment)
+ int alignment)
{
FUNCTIONSETUP;
if ((!column) || (!fIsRich[column]))
{
- TQListViewItem::paintCell(p,gc,column,width,tqalignment);
+ TQListViewItem::paintCell(p,gc,column,width,alignment);
return;
}
diff --git a/kpilot/listCat.h b/kpilot/listCat.h
index b90a5e6..c0dae94 100644
--- a/kpilot/listCat.h
+++ b/kpilot/listCat.h
@@ -210,7 +210,7 @@ public:
const TQColorGroup &,
int column,
int width,
- int tqalignment);
+ int alignment);
virtual void setup();
diff --git a/kpilot/logFile.cc b/kpilot/logFile.cc
index f066e7c..3548bcb 100644
--- a/kpilot/logFile.cc
+++ b/kpilot/logFile.cc
@@ -70,21 +70,21 @@ LogFile::LogFile() : DCOPObject("LogIface"), TQObject(), fOutfile(0L), fSyncing(
fSyncing = true;
fLogStream.setDevice(TQT_TQIODEVICE(fOutfile));
- fLogStream<<(CSL1("KPilot HotSync log, %1").tqarg(TQDateTime::currentDateTime().toString()))<Version: KPilot %1" TE_EOL)
- .tqarg(TQString::fromLatin1(KPILOT_VERSION)));
+ .arg(TQString::fromLatin1(KPILOT_VERSION)));
initialText.append(CSL1("Version: pilot-link %1.%2.%3%4" TE_EOL)
- .tqarg(PILOT_LINK_VERSION)
- .tqarg(PILOT_LINK_MAJOR)
- .tqarg(PILOT_LINK_MINOR)
+ .arg(PILOT_LINK_VERSION)
+ .arg(PILOT_LINK_MAJOR)
+ .arg(PILOT_LINK_MINOR)
#ifdef PILOT_LINK_PATCH
- .tqarg(TQString::fromLatin1(PILOT_LINK_PATCH))
+ .arg(TQString::fromLatin1(PILOT_LINK_PATCH))
#else
- .tqarg(TQString())
+ .arg(TQString())
#endif
);
#ifdef TDE_VERSION_STRING
initialText.append(CSL1("Version: KDE %1" TE_EOL)
- .tqarg(TQString::fromLatin1(TDE_VERSION_STRING)));
+ .arg(TQString::fromLatin1(TDE_VERSION_STRING)));
#endif
#ifdef TQT_VERSION_STR
initialText.append(CSL1("Version: TQt %1" TE_EOL)
- .tqarg(TQString::fromLatin1(TQT_VERSION_STR)));
+ .arg(TQString::fromLatin1(TQT_VERSION_STR)));
#endif
initialText.append(CSL1(TE_EOL));
diff --git a/kpilot/memoWidget.cc b/kpilot/memoWidget.cc
index 7675491..e22047c 100644
--- a/kpilot/memoWidget.cc
+++ b/kpilot/memoWidget.cc
@@ -84,7 +84,7 @@ MemoWidget::MemoWidget(TQWidget * parent,
FUNCTIONSETUP;
setGeometry(0, 0,
- parent->tqgeometry().width(), parent->tqgeometry().height());
+ parent->geometry().width(), parent->geometry().height());
setupWidget();
d->fMemoList.setAutoDelete(true);
slotUpdateButtons();
diff --git a/kpilot/pilotComponent.cc b/kpilot/pilotComponent.cc
index 5908479..0172a44 100644
--- a/kpilot/pilotComponent.cc
+++ b/kpilot/pilotComponent.cc
@@ -57,8 +57,8 @@ PilotComponent::PilotComponent(TQWidget * parent,
if (parent)
{
- resize(parent->tqgeometry().width(),
- parent->tqgeometry().height());
+ resize(parent->geometry().width(),
+ parent->geometry().height());
}
}
diff --git a/kpilot/pilotDaemon.cc b/kpilot/pilotDaemon.cc
index 7ad7756..f3158bd 100644
--- a/kpilot/pilotDaemon.cc
+++ b/kpilot/pilotDaemon.cc
@@ -166,7 +166,7 @@ void PilotDaemonTray::setupWidget()
SyncAction::SyncMode::name(SyncAction::SyncMode::a) + once, \
(int)(SyncAction::SyncMode::a));
fSyncTypeMenu->insertItem(i18n("Default (%1)")
- .tqarg(SyncAction::SyncMode::name((SyncAction::SyncMode::Mode)KPilotSettings::syncType())),
+ .arg(SyncAction::SyncMode::name((SyncAction::SyncMode::Mode)KPilotSettings::syncType())),
0);
fSyncTypeMenu->insertSeparator();
@@ -667,7 +667,7 @@ bool PilotDaemon::setupPilotLink()
}
}
- getLogger().logMessage(i18n("Next HotSync will be: %1. ").tqarg(fNextSyncType.name()) +
+ getLogger().logMessage(i18n("Next HotSync will be: %1. ").arg(fNextSyncType.name()) +
i18n("Please press the HotSync button."));
}
@@ -1272,7 +1272,7 @@ void PilotDaemon::updateTrayStatus(const TQString &s)
tipText.append( s );
tipText.append( CSL1(" ") );
tipText.append( i18n("Next sync is %1.")
- .tqarg( fNextSyncType.name() ) );
+ .arg( fNextSyncType.name() ) );
tipText.append( CSL1("") );
TQToolTip::remove(fTray);
diff --git a/kpilot/todoEditor_base.ui b/kpilot/todoEditor_base.ui
index c6d7eab..f9e3e54 100644
--- a/kpilot/todoEditor_base.ui
+++ b/kpilot/todoEditor_base.ui
@@ -31,7 +31,7 @@
&Description:
-
+
AlignTop
@@ -53,7 +53,7 @@
&Note:
-
+
AlignTop
diff --git a/kpilot/todoWidget.cc b/kpilot/todoWidget.cc
index 4632e69..e0b85dc 100644
--- a/kpilot/todoWidget.cc
+++ b/kpilot/todoWidget.cc
@@ -172,7 +172,7 @@ void TodoWidget::showComponent()
#if TDE_VERSION<220
s = i18n("There are still %1 to-do editing windows open.")
- .tqarg(TQString::number(fPendingTodos));
+ .arg(TQString::number(fPendingTodos));
#else
s = i18n("There is still a to-do editing window open.",
"There are still %n to-do editing windows open.",
diff --git a/lib/actions.cc b/lib/actions.cc
index eed9a3a..212540f 100644
--- a/lib/actions.cc
+++ b/lib/actions.cc
@@ -52,8 +52,8 @@ WelcomeAction::WelcomeAction(KPilotLink *p) :
FUNCTIONSETUP;
addSyncLogEntry(i18n("KPilot %1 HotSync starting...\n")
- .tqarg(TQString::fromLatin1(KPILOT_VERSION)));
- emit logMessage( i18n("Using encoding %1 on the handheld.").tqarg(Pilot::codecName()) );
+ .arg(TQString::fromLatin1(KPILOT_VERSION)));
+ emit logMessage( i18n("Using encoding %1 on the handheld.").arg(Pilot::codecName()) );
emit syncDone(this);
return true;
}
@@ -128,7 +128,7 @@ TestLink::TestLink(KPilotLink * p) :
// Let the KDE User know what's happening
// Pretty sure all database names are in latin1.
emit logMessage(i18n("Syncing database %1...")
- .tqarg(Pilot::fromPilot(db.name)));
+ .arg(Pilot::fromPilot(db.name)));
}
emit logMessage(i18n("HotSync finished."));
diff --git a/lib/kpilotdevicelink.cc b/lib/kpilotdevicelink.cc
index 9f661cd..84e26da 100644
--- a/lib/kpilotdevicelink.cc
+++ b/lib/kpilotdevicelink.cc
@@ -146,7 +146,7 @@ void DeviceCommThread::reset()
{
TQApplication::postEvent(link(), new DeviceCommEvent(EventLogMessage,
i18n("Could not open device: %1 (will retry)")
- .tqarg(link()->pilotPath() )));
+ .arg(link()->pilotPath() )));
}
link()->fMessages->reset();
@@ -185,7 +185,7 @@ void DeviceCommThread::openDevice()
{
TQApplication::postEvent(link(), new DeviceCommEvent(EventLogMessage,
i18n("Trying to open device %1...")
- .tqarg(link()->fPilotPath)));
+ .arg(link()->fPilotPath)));
}
// if we're not supposed to be done, try to open the main pilot
@@ -259,7 +259,7 @@ bool DeviceCommThread::open(const TQString &device)
{
e = errno;
msg = i18n("Cannot create socket for communicating "
- "with the Pilot (%1)").tqarg(errorMessage(e));
+ "with the Pilot (%1)").arg(errorMessage(e));
DEBUGKPILOT << msg << endl;
DEBUGKPILOT << "(" << strerror(e) << ")" << endl;
@@ -286,7 +286,7 @@ bool DeviceCommThread::open(const TQString &device)
<< strerror(errno) << "]" << endl;
e = errno;
- msg = i18n("Cannot open Pilot port \"%1\". ").tqarg(link()->fRealPilotPath);
+ msg = i18n("Cannot open Pilot port \"%1\". ").arg(link()->fRealPilotPath);
DEBUGKPILOT << msg << endl;
DEBUGKPILOT << "(" << strerror(e) << ")" << endl;
@@ -409,7 +409,7 @@ void DeviceCommThread::acceptDevice()
WARNINGKPILOT << "pi_accept returned: [" << s << "]" << endl;
TQApplication::postEvent(link(), new DeviceCommEvent(EventLogError, i18n("Cannot accept Pilot (%1)")
- .tqarg(TQString::fromLocal8Bit(s))));
+ .arg(TQString::fromLocal8Bit(s))));
link()->fLinkStatus = PilotLinkError;
reset();
@@ -424,7 +424,7 @@ void DeviceCommThread::acceptDevice()
WARNINGKPILOT << "Already connected or unable to connect!" << endl;
TQApplication::postEvent(link(), new DeviceCommEvent(EventLogError, i18n("Cannot accept Pilot (%1)")
- .tqarg(i18n("already connected"))));
+ .arg(i18n("already connected"))));
reset();
return;
@@ -707,7 +707,7 @@ void KPilotDeviceLink::checkDevice()
if (!(fi.isReadable() && fi.isWritable()))
{
emit logError(i18n("Pilot device %1 is not read-write.")
- .tqarg(fPilotPath));
+ .arg(fPilotPath));
}
}
else
@@ -718,7 +718,7 @@ void KPilotDeviceLink::checkDevice()
emit
logError(i18n("Pilot device %1 does not exist. "
"Probably it is a USB device and will appear during a HotSync.")
- .tqarg(fPilotPath));
+ .arg(fPilotPath));
// Suppress all normal and error messages about opening the device.
fMessages->block(Messages::OpenMessage | Messages::OpenFailMessage,
true);
diff --git a/lib/pilotAddress.cc b/lib/pilotAddress.cc
index 11fdd12..8865c93 100644
--- a/lib/pilotAddress.cc
+++ b/lib/pilotAddress.cc
@@ -171,7 +171,7 @@ unsigned int PhoneSlot::toField() const
PhoneSlot::operator TQString() const
{
- return TQString("%1,%2").tqarg(toOffset()).tqarg(toField());
+ return TQString("%1,%2").arg(toOffset()).arg(toField());
}
#define MAXFIELDS 19
@@ -294,13 +294,13 @@ TQString PilotAddress::getTextRepresentation(const PilotAddressInfo *info, TQt::
if (firstName.isEmpty())
{
// So replace placeholder for first name (%1) with empty
- tmp = tmp.tqarg(TQString());
+ tmp = tmp.arg(TQString());
}
else
{
- tmp = tmp.tqarg(rtExpand(firstName,richText));
+ tmp = tmp.arg(rtExpand(firstName,richText));
}
- tmp=tmp.tqarg(rtExpand(getField(entryLastname), richText));
+ tmp=tmp.arg(rtExpand(getField(entryLastname), richText));
text += tmp;
text += ps;
@@ -335,13 +335,13 @@ TQString PilotAddress::getTextRepresentation(const PilotAddressInfo *info, TQt::
}
if (info)
{
- tmp=tmp.tqarg(info->phoneLabel( getPhoneType( i ) ));
+ tmp=tmp.arg(info->phoneLabel( getPhoneType( i ) ));
}
else
{
- tmp=tmp.tqarg(CSL1("Contact: "));
+ tmp=tmp.arg(CSL1("Contact: "));
}
- tmp=tmp.tqarg(rtExpand(getField(i.toField()), richText));
+ tmp=tmp.arg(rtExpand(getField(i.toField()), richText));
text += tmp;
text += br;
}
diff --git a/lib/pilotDateEntry.cc b/lib/pilotDateEntry.cc
index 4a5fd3d..b11c057 100644
--- a/lib/pilotDateEntry.cc
+++ b/lib/pilotDateEntry.cc
@@ -170,13 +170,13 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
// title + name
text += par;
tmp=richText?CSL1("%1"):CSL1("%1");
- text += tmp.tqarg(rtExpand(getDescription(), richText));
+ text += tmp.arg(rtExpand(getDescription(), richText));
text += ps;
TQDateTime dt(readTm(getEventStart()));
TQString startDate(dt.toString(Qt::LocalDate));
text+=par;
- text+=i18n("Start date: %1").tqarg(startDate);
+ text+=i18n("Start date: %1").arg(startDate);
text+=ps;
if (isEvent())
@@ -190,7 +190,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
dt=readTm(getEventEnd());
TQString endDate(dt.toString(Qt::LocalDate));
text+=par;
- text+=i18n("End date: %1").tqarg(endDate);
+ text+=i18n("End date: %1").arg(endDate);
text+=ps;
}
@@ -201,10 +201,10 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
arg(getAdvance());
switch (getAdvanceUnits())
{
- case advMinutes: tmp=tmp.tqarg(i18n("minutes")); break;
- case advHours: tmp=tmp.tqarg(i18n("hours")); break;
- case advDays: tmp=tmp.tqarg(i18n("days")); break;
- default: tmp=tmp.tqarg(TQString()); break;;
+ case advMinutes: tmp=tmp.arg(i18n("minutes")); break;
+ case advHours: tmp=tmp.arg(i18n("hours")); break;
+ case advDays: tmp=tmp.arg(i18n("days")); break;
+ default: tmp=tmp.arg(TQString()); break;;
}
text+=tmp;
text+=ps;
@@ -215,16 +215,16 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
text+=par;
tmp=i18n("Recurrence: every %1 %2");
int freq = getRepeatFrequency();
- tmp=tmp.tqarg(freq);
+ tmp=tmp.arg(freq);
switch(getRepeatType())
{
- case repeatDaily: tmp=tmp.tqarg(i18n("day(s)")); break;
- case repeatWeekly: tmp=tmp.tqarg(i18n("week(s)")); break;
+ case repeatDaily: tmp=tmp.arg(i18n("day(s)")); break;
+ case repeatWeekly: tmp=tmp.arg(i18n("week(s)")); break;
case repeatMonthlyByDay:
- case repeatMonthlyByDate: tmp=tmp.tqarg(i18n("month(s)")); break;
- case repeatYearly: tmp=tmp.tqarg(i18n("year(s)")); break;
- default: tmp=tmp.tqarg(TQString()); break;
+ case repeatMonthlyByDate: tmp=tmp.arg(i18n("month(s)")); break;
+ case repeatYearly: tmp=tmp.arg(i18n("year(s)")); break;
+ default: tmp=tmp.arg(TQString()); break;
}
text+=tmp;
text+=br;
@@ -237,7 +237,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
else
{
dt = readTm(getRepeatEnd()).date();
- text+=i18n("Until %1").tqarg(dt.toString(Qt::LocalDate));
+ text+=i18n("Until %1").arg(dt.toString(Qt::LocalDate));
}
text+=br;
@@ -245,7 +245,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
if (getRepeatType()==repeatMonthlyByDate) text+=i18n("Repeating on the n-th day of the month")+br;
// TODO: show the dayArray when repeating weekly
/*TQBitArray dayArray(7);
- if (getRepeatType()==repeatWeekly) text+=i18n("Repeat day flags: %1").tqarg(getRepeatDays
+ if (getRepeatType()==repeatWeekly) text+=i18n("Repeat day flags: %1").arg(getRepeatDays
const int *days = dateEntry->getRepeatDays();
// Rotate the days of the week, since day numbers on the Pilot and
// in vCal / Events are different.
diff --git a/lib/pilotMemo.cc b/lib/pilotMemo.cc
index c5d4c09..c163e46 100644
--- a/lib/pilotMemo.cc
+++ b/lib/pilotMemo.cc
@@ -79,11 +79,11 @@ TQString PilotMemo::getTextRepresentation(TQt::TextFormat richText)
if (richText==TQt::RichText)
{
return i18n("Title: %1
\nMemoText:
%2").
- tqarg(rtExpand(getTitle(), richText)).tqarg(rtExpand(text(), richText));
+ arg(rtExpand(getTitle(), richText)).arg(rtExpand(text(), richText));
}
else
{
- return i18n("Title: %1\nMemoText:\n%2").tqarg(getTitle()).tqarg(text());
+ return i18n("Title: %1\nMemoText:\n%2").arg(getTitle()).arg(text());
}
}
diff --git a/lib/pilotRecord.cc b/lib/pilotRecord.cc
index 5abeaaf..59f055c 100644
--- a/lib/pilotRecord.cc
+++ b/lib/pilotRecord.cc
@@ -54,8 +54,8 @@
/* virtual */ TQString PilotRecord::textRepresentation() const
{
return CSL1("[ %1,%2 ]")
- .tqarg(PilotRecordBase::textRepresentation())
- .tqarg(size());
+ .arg(PilotRecordBase::textRepresentation())
+ .arg(size());
}
diff --git a/lib/pilotTodoEntry.cc b/lib/pilotTodoEntry.cc
index 8aa17ec..f91b6d5 100644
--- a/lib/pilotTodoEntry.cc
+++ b/lib/pilotTodoEntry.cc
@@ -125,7 +125,7 @@ TQString PilotTodoEntry::getTextRepresentation(TQt::TextFormat richText)
// title + name
text += par;
tmp= (richText==TQt::RichText) ?CSL1("%1"):CSL1("%1");
- text += tmp.tqarg(rtExpand(getDescription(), richText));
+ text += tmp.arg(rtExpand(getDescription(), richText));
text += ps;
text += par;
@@ -140,7 +140,7 @@ TQString PilotTodoEntry::getTextRepresentation(TQt::TextFormat richText)
TQDate dt(readTm(getDueDate()).date());
TQString dueDate(dt.toString(Qt::LocalDate));
text+=par;
- text+=i18n("Due date: %1").tqarg(dueDate);
+ text+=i18n("Due date: %1").arg(dueDate);
text+=ps;
}
@@ -148,7 +148,7 @@ TQString PilotTodoEntry::getTextRepresentation(TQt::TextFormat richText)
text+=ps;
text+=par;
- text+=i18n("Priority: %1").tqarg(getPriority());
+ text+=i18n("Priority: %1").arg(getPriority());
text+=ps;
if (!getNote().isEmpty())
diff --git a/lib/plugin.cc b/lib/plugin.cc
index b573695..7ef1bb9 100644
--- a/lib/plugin.cc
+++ b/lib/plugin.cc
@@ -91,7 +91,7 @@ ConduitConfigBase::~ConduitConfigBase()
FUNCTIONSETUP;
return i18n("The %1 conduit's settings have been changed. Do you "
- "want to save the changes before continuing?").tqarg(this->conduitName());
+ "want to save the changes before continuing?").arg(this->conduitName());
}
/* virtual */ bool ConduitConfigBase::maybeSave()
@@ -102,7 +102,7 @@ ConduitConfigBase::~ConduitConfigBase()
int r = KMessageBox::questionYesNoCancel(fWidget,
maybeSaveText(),
- i18n("%1 Conduit").tqarg(this->conduitName()), KStdGuiItem::save(), KStdGuiItem::discard());
+ i18n("%1 Conduit").arg(this->conduitName()), KStdGuiItem::save(), KStdGuiItem::discard());
if (r == KMessageBox::Cancel) return false;
if (r == KMessageBox::Yes) commit();
return true;
@@ -184,7 +184,7 @@ TQWidget *ConduitConfigBase::aboutPage(TQWidget *parent, KAboutData *ad)
if (!p->homepage().isEmpty())
{
s = TQString();
- s += CSL1("").tqarg(p->homepage());
+ s += CSL1("").arg(p->homepage());
s += p->homepage();
s += CSL1("
");
linktext->append(s);
@@ -192,12 +192,12 @@ TQWidget *ConduitConfigBase::aboutPage(TQWidget *parent, KAboutData *ad)
s = TQString();
s += i18n("Send questions and comments to %2.")
- .tqarg( CSL1("tdepim-users@kde.org") )
- .tqarg( CSL1("tdepim-users@kde.org") );
+ .arg( CSL1("tdepim-users@kde.org") )
+ .arg( CSL1("tdepim-users@kde.org") );
s += ' ';
s += i18n("Send bug reports to %2.")
- .tqarg(p->bugAddress())
- .tqarg(p->bugAddress());
+ .arg(p->bugAddress())
+ .arg(p->bugAddress());
s += ' ';
s += i18n("For trademark information, see the "
"KPilot User's Guide.");
@@ -218,9 +218,9 @@ TQWidget *ConduitConfigBase::aboutPage(TQWidget *parent, KAboutData *ad)
for (i=pl.begin(); i!=pl.end(); ++i)
{
s.append(CSL1("%1 (%2)%3")
- .tqarg((*i).name())
- .tqarg((*i).task())
- .tqarg(count%2)%3")
- .tqarg((*i).name())
- .tqarg((*i).task())
- .tqarg(count allowedVolatility)
{
- query = query.tqarg(fConduitName)
- .tqarg(fCtrHH->type()).tqarg(fCtrHH->moo());
+ query = query.arg(fConduitName)
+ .arg(fCtrHH->type()).arg(fCtrHH->moo());
DEBUGKPILOT << fname << ": Yikes, lots of volatility "
<< "caught. Check with user: [" << query
@@ -533,7 +533,7 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
WARNINGKPILOT << "Can't find desktop file for conduit "
<< fDesktopName
<< endl;
- addSyncLogEntry(i18n("Could not find conduit %1.").tqarg(fDesktopName));
+ addSyncLogEntry(i18n("Could not find conduit %1.").arg(fDesktopName));
return false;
}
@@ -556,7 +556,7 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
<< " - "
<< KLibLoader::self()->lastErrorMessage()
<< endl;
- addSyncLogEntry(i18n("Could not load conduit %1.").tqarg(fDesktopName));
+ addSyncLogEntry(i18n("Could not load conduit %1.").arg(fDesktopName));
return false;
}
@@ -568,7 +568,7 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
<< " has version "
<< version
<< endl;
- addSyncLogEntry(i18n("Conduit %1 has wrong version (%2).").tqarg(fDesktopName).tqarg(version));
+ addSyncLogEntry(i18n("Conduit %1 has wrong version (%2).").arg(fDesktopName).arg(version));
return false;
}
@@ -578,7 +578,7 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
WARNINGKPILOT << "Can't find factory in library "
<< fLibraryName
<< endl;
- addSyncLogEntry(i18n("Could not initialize conduit %1.").tqarg(fDesktopName));
+ addSyncLogEntry(i18n("Could not initialize conduit %1.").arg(fDesktopName));
return false;
}
@@ -591,7 +591,7 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
if (!object)
{
WARNINGKPILOT << "Can't create SyncAction." << endl;
- addSyncLogEntry(i18n("Could not create conduit %1.").tqarg(fDesktopName));
+ addSyncLogEntry(i18n("Could not create conduit %1.").arg(fDesktopName));
return false;
}
@@ -600,11 +600,11 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
if (!fConduit)
{
WARNINGKPILOT << "Can't cast to ConduitAction." << endl;
- addSyncLogEntry(i18n("Could not create conduit %1.").tqarg(fDesktopName));
+ addSyncLogEntry(i18n("Could not create conduit %1.").arg(fDesktopName));
return false;
}
- addSyncLogEntry(i18n("[Conduit %1]").tqarg(fDesktopName));
+ addSyncLogEntry(i18n("[Conduit %1]").arg(fDesktopName));
// Handle the syncDone signal properly & unload the conduit.
TQObject::connect(fConduit,TQT_SIGNAL(syncDone(SyncAction *)),
@@ -746,11 +746,11 @@ void CUDCounter::setEndCount(unsigned int t)
TQString CUDCounter::moo() const
{
TQString result = fType + ": " +
- i18n("Start: %1. End: %2. ").tqarg(fStart).tqarg(fEnd);
+ i18n("Start: %1. End: %2. ").arg(fStart).arg(fEnd);
- if (fC > 0) result += i18n("%1 new. ").tqarg(fC);
- if (fU > 0) result += i18n("%1 changed. ").tqarg(fU);
- if (fD > 0) result += i18n("%1 deleted. ").tqarg(fD);
+ if (fC > 0) result += i18n("%1 new. ").arg(fC);
+ if (fU > 0) result += i18n("%1 changed. ").arg(fU);
+ if (fD > 0) result += i18n("%1 deleted. ").arg(fD);
if ( (fC+fU+fD) <= 0) result += i18n("No changes made. ");
diff --git a/lib/recordConduit.cc b/lib/recordConduit.cc
index 89dfac6..7c92152 100644
--- a/lib/recordConduit.cc
+++ b/lib/recordConduit.cc
@@ -66,7 +66,7 @@ long version_record_conduit = Pilot::PLUGIN_API;
bool retrieved = false;
if (!openDatabases( fDBName, &retrieved))
{
- emit logError(i18n("Unable to open the %1 database on the handheld.").tqarg( fDBName ) );
+ emit logError(i18n("Unable to open the %1 database on the handheld.").arg( fDBName ) );
return false;
}
if (retrieved) setFirstSync(true);
@@ -286,13 +286,13 @@ RecordConduit::~RecordConduit()
// Database names probably in latin1.
if( !openDatabases( dbName(), &fFirstSync ) )
{
- emit logError(i18n("Unable to open the %1 database on the handheld.").tqarg( dbName() ) );
+ emit logError(i18n("Unable to open the %1 database on the handheld.").arg( dbName() ) );
return false;
}
_getAppInfo();
if( !mPCData->loadData() )
{
- emit logError( i18n("Unable to open %1.").tqarg( mPCData->description() ) );
+ emit logError( i18n("Unable to open %1.").arg( mPCData->description() ) );
return false;
}
// get the addresseMap which maps Pilot unique record(address) id's to
diff --git a/lib/syncAction.cc b/lib/syncAction.cc
index 404498b..444226e 100644
--- a/lib/syncAction.cc
+++ b/lib/syncAction.cc
@@ -101,7 +101,7 @@ SyncAction::~SyncAction()
if (!r)
{
emit logError(i18n("The conduit %1 could not be executed.")
- .tqarg(TQString::fromLatin1(name())));
+ .arg(TQString::fromLatin1(name())));
delayDone();
}
}
@@ -217,11 +217,11 @@ TQString SyncAction::SyncMode::name() const
if (isTest())
{
- s.append(CSL1(" [%1]").tqarg(i18n("Test Sync")));
+ s.append(CSL1(" [%1]").arg(i18n("Test Sync")));
}
if (isLocal())
{
- s.append(CSL1(" [%1]").tqarg(i18n("Local Sync")));
+ s.append(CSL1(" [%1]").arg(i18n("Local Sync")));
}
return s;
}
diff --git a/tests/mergecalendars.cc b/tests/mergecalendars.cc
index ea2970d..898eb8c 100644
--- a/tests/mergecalendars.cc
+++ b/tests/mergecalendars.cc
@@ -84,8 +84,8 @@ int main(int argc, char **argv)
return 1;
}
- TQString korgsave = TQString("%1.updated").tqarg(korgfile);
- TQString newfilesave = TQString("%1.updated").tqarg(newfile);
+ TQString korgsave = TQString("%1.updated").arg(korgfile);
+ TQString newfilesave = TQString("%1.updated").arg(newfile);
DEBUGKPILOT << "Using korgfile: [" << korgfile
<< "]" << endl;
diff --git a/tests/testcategories.cc b/tests/testcategories.cc
index c68be84..aefb8b9 100644
--- a/tests/testcategories.cc
+++ b/tests/testcategories.cc
@@ -53,7 +53,7 @@ TQStringList categories( const PilotAppInfoBase *appinfo )
TQString cat = appinfo->categoryName(i);
if (!cat.isEmpty())
{
- TQString s = CSL1("(%1:%2)").tqarg(i).tqarg(cat);
+ TQString s = CSL1("(%1:%2)").arg(i).arg(cat);
cats.append(s);
}
}