diff options
author | Timothy Pearson <[email protected]> | 2012-03-02 02:11:27 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-03-02 02:11:27 -0600 |
commit | 67ac950eb8660dc7f455640ffe77fd36b2fa44af (patch) | |
tree | 025f297b116786a8df77f42a264eaec5ec34be94 /qtinterface/qt4/Qt/qtest.h | |
parent | 9ba1ac7f1c73233eb133f35babbcbb7f89dabb50 (diff) | |
download | tqtinterface-67ac950eb8660dc7f455640ffe77fd36b2fa44af.tar.gz tqtinterface-67ac950eb8660dc7f455640ffe77fd36b2fa44af.zip |
Undo prior accidental commit
Diffstat (limited to 'qtinterface/qt4/Qt/qtest.h')
-rw-r--r-- | qtinterface/qt4/Qt/qtest.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/qtinterface/qt4/Qt/qtest.h b/qtinterface/qt4/Qt/qtest.h index 8754a4f..e1ce276 100644 --- a/qtinterface/qt4/Qt/qtest.h +++ b/qtinterface/qt4/Qt/qtest.h @@ -72,12 +72,12 @@ namespace QTest template<> inline char *toString(const QLatin1String &str) { - return tqstrdup(str.latin1()); + return qstrdup(str.latin1()); } template<> inline char *toString(const QString &str) { - return tqstrdup(str.toLatin1().constData()); + return qstrdup(str.toLatin1().constData()); } template<> inline char *toString(const QByteArray &ba) @@ -88,63 +88,63 @@ template<> inline char *toString(const QByteArray &ba) template<> inline char *toString(const QTime &time) { return time.isValid() - ? tqstrdup(time.toString(QLatin1String("hh:mm:ss.zzz")).toLatin1().constData()) - : tqstrdup("Invalid QTime"); + ? qstrdup(time.toString(QLatin1String("hh:mm:ss.zzz")).toLatin1().constData()) + : qstrdup("Invalid QTime"); } template<> inline char *toString(const QDate &date) { return date.isValid() - ? tqstrdup(date.toString(QLatin1String("yyyy/MM/dd")).toLatin1().constData()) - : tqstrdup("Invalid QDate"); + ? qstrdup(date.toString(QLatin1String("yyyy/MM/dd")).toLatin1().constData()) + : qstrdup("Invalid QDate"); } template<> inline char *toString(const QDateTime &dateTime) { return dateTime.isValid() - ? tqstrdup((dateTime.toString(QLatin1String("yyyy/MM/dd hh:mm:ss.zzz")) + + ? qstrdup((dateTime.toString(QLatin1String("yyyy/MM/dd hh:mm:ss.zzz")) + (dateTime.timeSpec() == Qt::LocalTime ? QLatin1String("[local time]") : QLatin1String("[UTC]"))).toLatin1().constData()) - : tqstrdup("Invalid QDateTime"); + : qstrdup("Invalid QDateTime"); } template<> inline char *toString(const QChar &c) { - return tqstrdup(QString::fromLatin1("QChar: '%1' (0x%2)").arg(c).arg(QString::number(static_cast<int>(c.unicode()), 16)).toLatin1().constData()); + return qstrdup(QString::fromLatin1("QChar: '%1' (0x%2)").arg(c).arg(QString::number(static_cast<int>(c.unicode()), 16)).toLatin1().constData()); } template<> inline char *toString(const QPoint &p) { - return tqstrdup(QString::fromLatin1("QPoint(%1,%2)").arg(p.x()).arg(p.y()).toLatin1().constData()); + return qstrdup(QString::fromLatin1("QPoint(%1,%2)").arg(p.x()).arg(p.y()).toLatin1().constData()); } template<> inline char *toString(const QSize &s) { - return tqstrdup(QString::fromLatin1("QSize(%1x%2)").arg(s.width()).arg(s.height()).toLatin1().constData()); + return qstrdup(QString::fromLatin1("QSize(%1x%2)").arg(s.width()).arg(s.height()).toLatin1().constData()); } template<> inline char *toString(const QRect &s) { - return tqstrdup(QString::fromLatin1("QRect(%1,%2 %5x%6) (bottomright %3,%4)").arg(s.left()).arg(s.top()).arg(s.right()).arg(s.bottom()).arg(s.width()).arg(s.height()).toLatin1().constData()); + return qstrdup(QString::fromLatin1("QRect(%1,%2 %5x%6) (bottomright %3,%4)").arg(s.left()).arg(s.top()).arg(s.right()).arg(s.bottom()).arg(s.width()).arg(s.height()).toLatin1().constData()); } template<> inline char *toString(const QPointF &p) { - return tqstrdup(QString::fromLatin1("QPointF(%1,%2)").arg(p.x()).arg(p.y()).toLatin1().constData()); + return qstrdup(QString::fromLatin1("QPointF(%1,%2)").arg(p.x()).arg(p.y()).toLatin1().constData()); } template<> inline char *toString(const QSizeF &s) { - return tqstrdup(QString::fromLatin1("QSizeF(%1x%2)").arg(s.width()).arg(s.height()).toLatin1().constData()); + return qstrdup(QString::fromLatin1("QSizeF(%1x%2)").arg(s.width()).arg(s.height()).toLatin1().constData()); } template<> inline char *toString(const QRectF &s) { - return tqstrdup(QString::fromLatin1("QRectF(%1,%2 %5x%6) (bottomright %3,%4)").arg(s.left()).arg(s.top()).arg(s.right()).arg(s.bottom()).arg(s.width()).arg(s.height()).toLatin1().constData()); + return qstrdup(QString::fromLatin1("QRectF(%1,%2 %5x%6) (bottomright %3,%4)").arg(s.left()).arg(s.top()).arg(s.right()).arg(s.bottom()).arg(s.width()).arg(s.height()).toLatin1().constData()); } template<> inline char *toString(const QUrl &uri) { - return tqstrdup(uri.toEncoded().constData()); + return qstrdup(uri.toEncoded().constData()); } template<> inline char *toString(const QVariant &v) @@ -168,7 +168,7 @@ template<> inline char *toString(const QVariant &v) } vstring.append(')'); - return tqstrdup(vstring.constData()); + return qstrdup(vstring.constData()); } #ifndef QTEST_NO_SPECIALIZATIONS |