10#define QUERYLOADABLE_H
28 static QDateTime
utcTime(
const QVariant& value);
38 if(value.length() > 0) {
39 result =
static_cast<T
>(value.at(0).toLatin1());
virtual bool loadFromQuery(const QSqlQuery &query)=0
Load the object's state from the current row of a query result.
static QDateTime utcTime(const QVariant &value)
Convert a QVariant database value to a UTC QDateTime.
static T enumFromString(const QString &value)
Convert a single-character string to an enum value by casting the first character.