diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-02-18 15:30:29 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-20 12:45:41 +0100 |
commit | 691469c05c882fb290546484448df684976f9233 (patch) | |
tree | ecdc0ddcb3c160de3579b3eea0ab6152d5abdf0f /src/qml/types/qqmllistmodel.cpp | |
parent | 4900a3d491e56c0950036de624ab8c9800b070f7 (diff) |
Fix ListModel::setProperty() to accept date roles
Task-number: QTBUG-33564
Change-Id: Ifbc1c5014d41b26223c57fafdc616e9b4ddee5b8
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/qml/types/qqmllistmodel.cpp')
-rw-r--r-- | src/qml/types/qqmllistmodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/types/qqmllistmodel.cpp b/src/qml/types/qqmllistmodel.cpp index 03dfb6690f..50b7614c3b 100644 --- a/src/qml/types/qqmllistmodel.cpp +++ b/src/qml/types/qqmllistmodel.cpp @@ -219,6 +219,7 @@ const ListLayout::Role *ListLayout::getRoleOrCreate(const QString &key, const QV case QVariant::Bool: type = Role::Bool; break; case QVariant::String: type = Role::String; break; case QVariant::Map: type = Role::VariantMap; break; + case QVariant::DateTime: type = Role::DateTime; break; default: type = Role::Invalid; break; } |