summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@digia.com>2013-11-25 15:14:53 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-26 10:45:47 +0100
commitcebf5852fa62940230a4d9ca61bb67954aea3395 (patch)
tree6fcc3db2cc8458b534507f95e7da0321519322b4 /examples
parent0b8906110225b9d2c45807dfe14ab8d25b03de67 (diff)
downloadqtenginio-cebf5852fa62940230a4d9ca61bb67954aea3395.tar.gz
Move EnginioModelBase::Roles to Enginio::Roles
Change-Id: I9729c25bdbe83c8f3339c161c94e502c35141966 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/widgets/cloudaddressbook/addressbookmodel.cpp2
-rw-r--r--examples/widgets/cloudaddressbook/addressbookmodel.h2
-rw-r--r--examples/widgets/todos-cpp/todosmodel.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/widgets/cloudaddressbook/addressbookmodel.cpp b/examples/widgets/cloudaddressbook/addressbookmodel.cpp
index a5da338..2053047 100644
--- a/examples/widgets/cloudaddressbook/addressbookmodel.cpp
+++ b/examples/widgets/cloudaddressbook/addressbookmodel.cpp
@@ -67,7 +67,7 @@ QVariant AddressBookModel::data(const QModelIndex &index, int role) const
if (role == Qt::FontRole) {
// this role is used to mark items found in the full text search.
QFont font;
- QString id = EnginioModel::data(index, IdRole).value<QString>();
+ QString id = EnginioModel::data(index, Enginio::IdRole).value<QString>();
font.setBold(_markedItems.contains(id));
return font;
}
diff --git a/examples/widgets/cloudaddressbook/addressbookmodel.h b/examples/widgets/cloudaddressbook/addressbookmodel.h
index 88021d9..362a931 100644
--- a/examples/widgets/cloudaddressbook/addressbookmodel.h
+++ b/examples/widgets/cloudaddressbook/addressbookmodel.h
@@ -54,7 +54,7 @@ class AddressBookModel : public EnginioModel
public:
//![Roles]
enum Roles {
- FirstNameRole = EnginioModel::LastRole,
+ FirstNameRole = Enginio::LastRole,
LastNameRole,
EmailRole,
PhoneRole,
diff --git a/examples/widgets/todos-cpp/todosmodel.h b/examples/widgets/todos-cpp/todosmodel.h
index 4fd17ba..0403817 100644
--- a/examples/widgets/todos-cpp/todosmodel.h
+++ b/examples/widgets/todos-cpp/todosmodel.h
@@ -51,7 +51,7 @@ class TodosModel : public EnginioModel
public:
enum Role
{
- TitleRole = EnginioModel::LastRole,
+ TitleRole = Enginio::LastRole,
CompletedRole
};
//![definition]