summaryrefslogtreecommitdiffstats
path: root/src/models/uiproxyqmlmodel.cpp
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-08-20 11:59:37 +0200
committerAnselmo L. S. Melo <anselmo.melo@openbossa.org>2012-08-20 18:44:09 +0200
commitae68129a5f3727e1b74c6de1dbc5871a8bd0a54e (patch)
tree7754197d4913daeb52f8427a4dcdb2444615f0a8 /src/models/uiproxyqmlmodel.cpp
parentad3f6218ae3a30591df449a994b47ac7182933c8 (diff)
Remove copy of QStandardItemModel.
It is in QtGui, so no need to duplicate it here. Change-Id: I241f638f358af49a68163c71071bec5165e20445 Reviewed-by: Anselmo L. S. Melo <anselmo.melo@openbossa.org>
Diffstat (limited to 'src/models/uiproxyqmlmodel.cpp')
-rw-r--r--src/models/uiproxyqmlmodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/models/uiproxyqmlmodel.cpp b/src/models/uiproxyqmlmodel.cpp
index c8b8e9e..5ebc358 100644
--- a/src/models/uiproxyqmlmodel.cpp
+++ b/src/models/uiproxyqmlmodel.cpp
@@ -47,7 +47,7 @@
QT_BEGIN_NAMESPACE_UIHELPERS
UiProxyQmlModel::UiProxyQmlModel(QObject *parent)
- : UiStandardItemModel(parent)
+ : QStandardItemModel(parent)
{
}
@@ -74,7 +74,7 @@ void UiProxyQmlModel::createFromList(const QVariantList &list)
setRoleNames(roleNames);
foreach (const QVariant& var, list) {
- UiStandardItem *item = new UiStandardItem();
+ QStandardItem *item = new QStandardItem();
item->setData(var, Qt::DisplayRole);
item->setFlags(Qt::ItemIsSelectable);
appendRow(item);
@@ -90,7 +90,7 @@ void UiProxyQmlModel::createFromQuickList(QQuickListModel *list)
setRoleNames(roleNames);
for (int i = 0; i < list->count(); i++) {
- UiStandardItem *item = new UiStandardItem();
+ QStandardItem *item = new QStandardItem();
foreach (int role, list->roles())
item->setData(list->data(i, role), Qt::UserRole + role);