From 45611484324c284701d1fb6b5873ed4a05f0535b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Feb 2013 17:13:51 +0200 Subject: Don't use deprecated Qt API (removed in Qt5) --- odb/qt/date-time/sqlite/qdate-time-traits.hxx | 2 +- odb/qt/date-time/sqlite/qdate-traits.hxx | 2 +- odb/qt/date-time/sqlite/qtime-traits.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/odb/qt/date-time/sqlite/qdate-time-traits.hxx b/odb/qt/date-time/sqlite/qdate-time-traits.hxx index ef8a714..259d1c8 100644 --- a/odb/qt/date-time/sqlite/qdate-time-traits.hxx +++ b/odb/qt/date-time/sqlite/qdate-time-traits.hxx @@ -40,7 +40,7 @@ namespace odb v = QDateTime (); else v = QDateTime::fromString ( - QString::fromAscii (i.data (), static_cast (n)), + QString::fromLatin1 (i.data (), static_cast (n)), "yyyy-MM-ddTHH:mm:ss.zzz"); } diff --git a/odb/qt/date-time/sqlite/qdate-traits.hxx b/odb/qt/date-time/sqlite/qdate-traits.hxx index 05b96fc..175dc6b 100644 --- a/odb/qt/date-time/sqlite/qdate-traits.hxx +++ b/odb/qt/date-time/sqlite/qdate-traits.hxx @@ -41,7 +41,7 @@ namespace odb v.setDate (0, 0, 0); else v = QDate::fromString ( - QString::fromAscii (i.data (), static_cast (n)), + QString::fromLatin1 (i.data (), static_cast (n)), "yyyy-MM-dd"); } diff --git a/odb/qt/date-time/sqlite/qtime-traits.hxx b/odb/qt/date-time/sqlite/qtime-traits.hxx index 141090b..897fe22 100644 --- a/odb/qt/date-time/sqlite/qtime-traits.hxx +++ b/odb/qt/date-time/sqlite/qtime-traits.hxx @@ -41,7 +41,7 @@ namespace odb v.setHMS (24, 0, 0); else v = QTime::fromString ( - QString::fromAscii (i.data (), static_cast (n)), + QString::fromLatin1 (i.data (), static_cast (n)), "HH:mm:ss.zzz"); } -- cgit v1.1