From a30a266067d9d952edc91305bef757557c03717e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 16 Jul 2022 15:44:05 +0900 Subject: Raw Qt->TQt conversion using tde/scripts/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3. Signed-off-by: Michele Calgaro --- src/UiGuiVersion.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/UiGuiVersion.cpp') diff --git a/src/UiGuiVersion.cpp b/src/UiGuiVersion.cpp index 8ddcdd8..9564e4e 100755 --- a/src/UiGuiVersion.cpp +++ b/src/UiGuiVersion.cpp @@ -19,8 +19,8 @@ #include "UiGuiVersion.h" -#include -#include +#include +#include #include namespace UiGuiVersion { @@ -28,15 +28,15 @@ namespace UiGuiVersion { \brief Returns the build date as a localized string, e.g. "9. Februar 2009". If there was some kind of error, the returned string is empty. */ -QString getBuildDate() { - QStringList monthNames; - QString buildDateString = ""; +TQString getBuildDate() { + TQStringList monthNames; + TQString buildDateString = ""; monthNames << "Jan" << "Feb" << "Mar" << "Apr" << "May" << "Jun" << "Jul" << "Aug" << "Sep" << "Oct" << "Nov" << "Dez"; - QStringList buildDateStringList = QString(__DATE__).simplified().split(' '); // __DATE__ returns eg "Feb 4 2009" + TQStringList buildDateStringList = TQString(__DATE__).simplified().split(' '); // __DATE__ returns eg "Feb 4 2009" if ( buildDateStringList.count() == 3 ) { - QDate buildDate(buildDateStringList.last().toInt(), monthNames.indexOf( buildDateStringList.first() )+1, buildDateStringList.at(1).toInt()); + TQDate buildDate(buildDateStringList.last().toInt(), monthNames.indexOf( buildDateStringList.first() )+1, buildDateStringList.at(1).toInt()); buildDateString = buildDate.toString("d. MMMM yyyy"); } @@ -48,9 +48,9 @@ QString getBuildDate() { \brief Returns the revision number, that the current build is based on, as string. If there was some kind of error, the returned string is empty. */ -QString getBuildRevision() { - QString buildRevision = ""; - QStringList buildRevisionStringList = QString(PROGRAM_REVISION).simplified().split(' '); +TQString getBuildRevision() { + TQString buildRevision = ""; + TQStringList buildRevisionStringList = TQString(PROGRAM_REVISION).simplified().split(' '); if ( buildRevisionStringList.count() == 3 ) { buildRevision = buildRevisionStringList.at(1); // PROGRAM_REVISION is eg "$Revision: 907 $" -- cgit v1.2.1