summaryrefslogtreecommitdiffstats
path: root/src/kvilib/system/kvi_time.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvilib/system/kvi_time.cpp')
-rw-r--r--src/kvilib/system/kvi_time.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kvilib/system/kvi_time.cpp b/src/kvilib/system/kvi_time.cpp
index f500b7d4..a61b3e76 100644
--- a/src/kvilib/system/kvi_time.cpp
+++ b/src/kvilib/system/kvi_time.cpp
@@ -93,11 +93,11 @@ namespace KviTimeUtils
*uS = uSecs % 60;
}
- QString formatTimeInterval(unsigned int uSeconds,int iFlags)
+ TQString formatTimeInterval(unsigned int uSeconds,int iFlags)
{
unsigned int d,h,m,s;
secondsToDaysHoursMinsSecs(uSeconds,&d,&h,&m,&s);
- QString ret;
+ TQString ret;
// the following tricks maybe will help translators a bit...
if(iFlags & FillWithHypens)
{
@@ -108,25 +108,25 @@ namespace KviTimeUtils
if(h > 0)
{
if(iFlags & NoLeadingZeroes)
- KviQString::sprintf(ret,__tr2qs("%u h %u m %u s"),h,m,s);
+ KviTQString::sprintf(ret,__tr2qs("%u h %u m %u s"),h,m,s);
else
- KviQString::sprintf(ret,__tr2qs("%u h %u%u m %u%u s"),h,m / 10,m % 10,s / 10,s % 10);
+ KviTQString::sprintf(ret,__tr2qs("%u h %u%u m %u%u s"),h,m / 10,m % 10,s / 10,s % 10);
} else {
if(m > 0)
{
if(iFlags & NoLeadingZeroes)
- KviQString::sprintf(ret,__tr2qs("%u m %u s"),m,s);
+ KviTQString::sprintf(ret,__tr2qs("%u m %u s"),m,s);
else
- KviQString::sprintf(ret,__tr2qs("%u m %u%u s"),m,s / 10,s % 10);
+ KviTQString::sprintf(ret,__tr2qs("%u m %u%u s"),m,s / 10,s % 10);
} else {
- KviQString::sprintf(ret,__tr2qs("%u s"),s);
+ KviTQString::sprintf(ret,__tr2qs("%u s"),s);
}
}
} else {
if(iFlags & NoLeadingZeroes)
- KviQString::sprintf(ret,__tr2qs("%u d %u h %u m %u s"),d,h,m,s);
+ KviTQString::sprintf(ret,__tr2qs("%u d %u h %u m %u s"),d,h,m,s);
else
- KviQString::sprintf(ret,__tr2qs("%u d %u%u h %u%u m %u%u s"),d,h / 10,h % 10,m / 10,m % 10,s / 10,s % 10);
+ KviTQString::sprintf(ret,__tr2qs("%u d %u%u h %u%u m %u%u s"),d,h / 10,h % 10,m / 10,m % 10,s / 10,s % 10);
}
}
return ret;