summaryrefslogtreecommitdiffstats
path: root/lib/kotext/IsoDuration.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kotext/IsoDuration.h
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kotext/IsoDuration.h')
-rw-r--r--lib/kotext/IsoDuration.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/kotext/IsoDuration.h b/lib/kotext/IsoDuration.h
index dbeef450..6ccb2891 100644
--- a/lib/kotext/IsoDuration.h
+++ b/lib/kotext/IsoDuration.h
@@ -16,38 +16,38 @@
* Boston, MA 02110-1301, USA.
*/
-#include <qstring.h>
+#include <tqstring.h>
/**
* Routines for converting to and from the ISO-8601 duration format
* http://www.w3.org/TR/xmlschema-2/datatypes.html#duration
*
- * This is not the ISO time format supported by Qt (HH:MM:SS),
+ * This is not the ISO time format supported by TQt (HH:MM:SS),
* it's PT1H15M12S for 1:15:12.
*
*/
-static QString minutesToISODuration( int mn )
+static TQString minutesToISODuration( int mn )
{
bool neg = mn < 0;
// PT == period of time - see ISO8601
- QString str = QString::fromLatin1( "PT00H%1M00S" ).arg( QABS( mn ) );
+ TQString str = TQString::tqfromLatin1( "PT00H%1M00S" ).tqarg( TQABS( mn ) );
if ( neg )
str.prepend( '-' );
return str;
}
-static QString daysToISODuration( int days )
+static TQString daysToISODuration( int days )
{
bool neg = days < 0;
// P == period, time is ommitted - see ISO8601
- QString str = QString::fromLatin1( "P%1D" ).arg( QABS( days ) );
+ TQString str = TQString::tqfromLatin1( "P%1D" ).tqarg( TQABS( days ) );
if ( neg )
str.prepend( '-' );
return str;
}
-static int ISODurationToMinutes( const QString& str )
+static int ISODurationToMinutes( const TQString& str )
{
int idx = 0;
const int len = str.length();
@@ -77,7 +77,7 @@ static int ISODurationToMinutes( const QString& str )
return neg ? -minutes : minutes;
}
-static int ISODurationToDays( const QString& str )
+static int ISODurationToDays( const TQString& str )
{
int idx = 0;
const int len = str.length();