diff options
author | Jędrzej Nowacki <jedrzej.nowacki@digia.com> | 2013-11-29 15:35:28 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-29 17:28:56 +0100 |
commit | 9da68382181bc74f58a7aa0de39550dccc70ae93 (patch) | |
tree | c7421ea26acd2e913bca78aa7495e77de8943b00 /tests/auto | |
parent | 9c039ff55cb07eee01e03266563ca8b1453f2d73 (diff) | |
download | qtenginio-9da68382181bc74f58a7aa0de39550dccc70ae93.tar.gz |
Rename Enginio::LastRole to Enginio::CustomPropertyRole
Fix small mistakes related to Enginio::Role documentation
Change-Id: Ia4241e750f684b80cdf0984d44939c53f08e19df
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/enginiomodel/tst_enginiomodel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/enginiomodel/tst_enginiomodel.cpp b/tests/auto/enginiomodel/tst_enginiomodel.cpp index 9d1ed35..113aa9c 100644 --- a/tests/auto/enginiomodel/tst_enginiomodel.cpp +++ b/tests/auto/enginiomodel/tst_enginiomodel.cpp @@ -1364,13 +1364,13 @@ void tst_EnginioModel::updatingRoles() QJsonObject query; query.insert("objectType", objectType); - QTest::ignoreMessage(QtWarningMsg, "Can not use custom role index lower then Enginio::LastRole, but '261' was used for 'invalid'"); + QTest::ignoreMessage(QtWarningMsg, "Can not use custom role index lower then Enginio::CustomPropertyRole, but '261' was used for 'invalid'"); struct CustomModel: public EnginioModel { enum { - BarRole = Enginio::LastRole, - FooRole = Enginio::LastRole + 1, - TitleRole = Enginio::LastRole + 20, // existing custom role + BarRole = Enginio::CustomPropertyRole, + FooRole = Enginio::CustomPropertyRole + 1, + TitleRole = Enginio::CustomPropertyRole + 20, // existing custom role InvalidRole = Enginio::ObjectTypeRole, // custom and with wrong index IdRole = Enginio::IdRole // duplicate of existing role }; @@ -1441,7 +1441,7 @@ void tst_EnginioModel::setData() struct Model: public EnginioModel { enum Roles { - TitleRole = Enginio::LastRole + TitleRole = Enginio::CustomPropertyRole }; virtual QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE |