Changeset d0d0a66 for src/orm


Ignore:
Timestamp:
01/02/10 22:14:10 (12 years ago)
Author:
komarma <komarma@…>
Branches:
master, qt5
Children:
9bbb44e
Parents:
489f262
Message:

Creating EventModel? class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/orm/ormrecord.h

    r489f262 rd0d0a66  
    163163QVariant OrmRecord<T>::convertToDb(QVariant value, QVariant::Type colType)
    164164{
    165     if (colType == QVariant::DateTime && value.type() == QVariant::DateTime)
     165    if (colType == QVariant::DateTime && value.canConvert<QDateTime>())
    166166    {
    167167        return value.toDateTime().toTime_t();
Note: See TracChangeset for help on using the changeset viewer.