summaryrefslogtreecommitdiffstats
path: root/pbap/pbap.h
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-11-19 13:19:46 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-11-19 13:19:56 +0100
commit4f75c049e8ba1e7fd4f1094f9ed8b681318f021d (patch)
treeaa98230ff962aeba9775c459515b229c8eac47a0 /pbap/pbap.h
parent1d78b4a6f9ba4807901c6fc30ece2b84754908e8 (diff)
Import the patches for the demo applications into the app repos. Bug-AGL: SPEC-5294 Change-Id: I516a951cdd49dbfb1729bf4e49360333b951bad3 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'pbap/pbap.h')
-rw-r--r--pbap/pbap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/pbap/pbap.h b/pbap/pbap.h
index 25fa450..447eeac 100644
--- a/pbap/pbap.h
+++ b/pbap/pbap.h
@@ -62,7 +62,7 @@ class Contact : public QObject
Q_PROPERTY(QString name READ name NOTIFY nameChanged)
Q_PROPERTY(QString photo READ photo NOTIFY photoChanged)
- Q_PROPERTY(QQmlListProperty<PhoneNumber>numbers READ numbersList NOTIFY numbersListChanged)
+ Q_PROPERTY(QQmlListProperty<PhoneNumber> numbers READ numbersList NOTIFY numbersListChanged)
public:
explicit Contact(QString name, QString photo, QList<PhoneNumber *>numbers);
@@ -75,11 +75,11 @@ class Contact : public QObject
QQmlListProperty<PhoneNumber>numbersList() {
return QQmlListProperty<PhoneNumber>(this, 0, &Contact::countNumbers, &Contact::atNumbers);
}
- static int countNumbers(QQmlListProperty<PhoneNumber> *property) {
+ static qsizetype countNumbers(QQmlListProperty<PhoneNumber> *property) {
Contact *contact = qobject_cast<Contact *>(property->object);
return contact->m_numbers.size();
}
- static PhoneNumber *atNumbers(QQmlListProperty<PhoneNumber> *property, int index) {
+ static PhoneNumber *atNumbers(QQmlListProperty<PhoneNumber> *property, qsizetype index) {
Contact *contact = qobject_cast<Contact *>(property->object);
return contact->m_numbers[index];
}