summaryrefslogtreecommitdiffstats
path: root/karm/karmstorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'karm/karmstorage.cpp')
-rw-r--r--karm/karmstorage.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/karm/karmstorage.cpp b/karm/karmstorage.cpp
index aecee470d..e895d2639 100644
--- a/karm/karmstorage.cpp
+++ b/karm/karmstorage.cpp
@@ -199,8 +199,8 @@ TQString KarmStorage::load (TaskView* view, const Preferences* preferences, TQSt
// Complete the loading but return a message
if ( !newParent )
err = i18n("Error loading \"%1\": could not find parent (uid=%2)")
- .tqarg(task->name())
- .tqarg((*todo)->relatedToUid());
+ .arg(task->name())
+ .arg((*todo)->relatedToUid());
if (!err) task->move( newParent);
}
@@ -268,8 +268,8 @@ TQString KarmStorage::buildTaskView(KCal::ResourceCalendar *rc, TaskView *view)
// Complete the loading but return a message
if ( !newParent )
err = i18n("Error loading \"%1\": could not find parent (uid=%2)")
- .tqarg(task->name())
- .tqarg((*todo)->relatedToUid());
+ .arg(task->name())
+ .arg((*todo)->relatedToUid());
if (!err) task->move( newParent);
}
@@ -391,12 +391,12 @@ TQString KarmStorage::loadFromFlatFile(TaskView* taskview,
TQFile f(filename);
if( !f.exists() )
- err = i18n("File \"%1\" not found.").tqarg(filename);
+ err = i18n("File \"%1\" not found.").arg(filename);
if (!err)
{
if( !f.open( IO_ReadOnly ) )
- err = i18n("Could not open \"%1\".").tqarg(filename);
+ err = i18n("Could not open \"%1\".").arg(filename);
}
if (!err)
@@ -667,7 +667,7 @@ TQString KarmStorage::exportcsvFile( TaskView *taskview,
if (filename.isEmpty()) filename=rc.url.url();
TQFile f( filename );
if( !f.open( IO_WriteOnly ) ) {
- err = i18n( "Could not open \"%1\"." ).tqarg( filename );
+ err = i18n( "Could not open \"%1\"." ).arg( filename );
}
if (!err)
{
@@ -809,13 +809,13 @@ long KarmStorage::printTaskHistory (
// write the time in seconds for the given task for the given day to s
daykey = day.toString(TQString::fromLatin1("yyyyMMdd"));
daytaskkey = TQString::fromLatin1("%1_%2")
- .tqarg(daykey)
- .tqarg(task->uid());
+ .arg(daykey)
+ .arg(task->uid());
if (taskdaytotals.contains(daytaskkey))
{
cell.push_back(TQString::fromLatin1("%1")
- .tqarg(formatTime(taskdaytotals[daytaskkey]/60, rc.decimalMinutes)));
+ .arg(formatTime(taskdaytotals[daytaskkey]/60, rc.decimalMinutes)));
sum += taskdaytotals[daytaskkey]; // in seconds
if (daytotals.contains(daykey))
@@ -829,7 +829,7 @@ long KarmStorage::printTaskHistory (
}
// Total for task
- cell.push_back(TQString::fromLatin1("%1").tqarg(formatTime(sum/60, rc.decimalMinutes)));
+ cell.push_back(TQString::fromLatin1("%1").arg(formatTime(sum/60, rc.decimalMinutes)));
// room for the recursive total time (that cannot be calculated now)
cell.push_back(delim);
@@ -865,7 +865,7 @@ long KarmStorage::printTaskHistory (
add += printTaskHistory( subTask, taskdaytotals, daytotals, from, to , level+1, matrix,
rc );
}
- cell[colrectot]=(TQString::fromLatin1("%1").tqarg(formatTime((add+sum)/60, rc.decimalMinutes )));
+ cell[colrectot]=(TQString::fromLatin1("%1").arg(formatTime((add+sum)/60, rc.decimalMinutes )));
for (unsigned int i=0; i < cell.size(); i++) matrix[ownline]+=cell[i];
return add+sum;
}
@@ -917,11 +917,11 @@ TQString KarmStorage::exportcsvHistory ( TaskView *taskview,
// header
retval += i18n("Task History\n");
retval += i18n("From %1 to %2")
- .tqarg(KGlobal::locale()->formatDate(from))
- .tqarg(KGlobal::locale()->formatDate(to));
+ .arg(KGlobal::locale()->formatDate(from))
+ .arg(KGlobal::locale()->formatDate(to));
retval += cr;
retval += i18n("Printed on: %1")
- .tqarg(KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime()));
+ .arg(KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime()));
retval += cr;
day=from;
@@ -938,8 +938,8 @@ TQString KarmStorage::exportcsvHistory ( TaskView *taskview,
{
daykey = (*event).start().date().toString(TQString::fromLatin1("yyyyMMdd"));
daytaskkey = TQString(TQString::fromLatin1("%1_%2"))
- .tqarg(daykey)
- .tqarg((*event).todoUid());
+ .arg(daykey)
+ .arg((*event).todoUid());
if (taskdaytotals.contains(daytaskkey))
taskdaytotals.replace(daytaskkey,
@@ -998,7 +998,7 @@ TQString KarmStorage::exportcsvHistory ( TaskView *taskview,
if (daytotals.contains(daykey))
{
retval += TQString::fromLatin1("%1")
- .tqarg(formatTime(daytotals[daykey]/60, rc.decimalMinutes));
+ .arg(formatTime(daytotals[daykey]/60, rc.decimalMinutes));
sum += daytotals[daykey]; // in seconds
}
retval += delim;
@@ -1006,9 +1006,9 @@ TQString KarmStorage::exportcsvHistory ( TaskView *taskview,
}
retval += TQString::fromLatin1("%1%2%3%4")
- .tqarg( formatTime( sum/60, rc.decimalMinutes ) )
- .tqarg( delim ).tqarg( delim )
- .tqarg( i18n( "Total" ) );
+ .arg( formatTime( sum/60, rc.decimalMinutes ) )
+ .arg( delim ).arg( delim )
+ .arg( i18n( "Total" ) );
}
// above taken from timekard.cpp
@@ -1021,7 +1021,7 @@ TQString KarmStorage::exportcsvHistory ( TaskView *taskview,
if (filename.isEmpty()) filename=rc.url.url();
TQFile f( filename );
if( !f.open( IO_WriteOnly ) ) {
- err = i18n( "Could not open \"%1\"." ).tqarg( filename );
+ err = i18n( "Could not open \"%1\"." ).arg( filename );
}
if (!err)
{