summaryrefslogtreecommitdiffstats
path: root/imports
diff options
context:
space:
mode:
authorAnselmo L. S. Melo <anselmolsm@gmail.com>2014-03-29 18:31:57 -0300
committerAnselmo L. S. Melo <anselmolsm@gmail.com>2014-05-09 13:04:53 +0200
commit5a530b2b9e514a83b9e5f2a66f06b37d35cac3f2 (patch)
tree7d782a5a1e5e1b1afe2cf16fa4c546c6af6eedd2 /imports
parent67d58739f5e2fbefd45ff911da244aa4c910529d (diff)
API updatesHEADmaster
This project was developed before the release of Qt 5.0, so some of the APIs had to be updated in order to build again. Change-Id: I579d7170ea0d80bd33aee29ec807461af603b0d3 Reviewed-by: Anselmo L. S. Melo <anselmolsm@gmail.com>
Diffstat (limited to 'imports')
-rw-r--r--imports/models/uiquickcompletionmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/imports/models/uiquickcompletionmodel.cpp b/imports/models/uiquickcompletionmodel.cpp
index 9f69399..d414976 100644
--- a/imports/models/uiquickcompletionmodel.cpp
+++ b/imports/models/uiquickcompletionmodel.cpp
@@ -83,7 +83,7 @@ void UiQuickCompletionModel::setSource(const QVariant& source)
if (type == UiProxyQmlModel::ArrayList)
setCompletionRole(Qt::DisplayRole);
else if (type == UiProxyQmlModel::QuickList) {
- int role = d->proxy->roleNames().key(d->roleName.toAscii(), -1);
+ int role = d->proxy->roleNames().key(d->roleName.toLatin1(), -1);
if (role != -1)
setCompletionRole(role);
}
@@ -108,7 +108,7 @@ void UiQuickCompletionModel::setCompletionRoleName(const QString &roleName)
if (roleName == d->roleName)
return;
- int role = d->proxy->roleNames().key(roleName.toAscii(), -1);
+ int role = d->proxy->roleNames().key(roleName.toLatin1(), -1);
if (role != -1)
setCompletionRole(role);