summaryrefslogtreecommitdiffstats
path: root/examples/activeqt
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-03-16 10:12:22 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-03-16 13:51:45 +0000
commit229fe61f2a64359069ae891c310b56a054c0062c (patch)
treed5c8003961b275095bab325b77a6fb46ceee9ca4 /examples/activeqt
parentee86f9c3651497842642dc9e166c5bdb1078c116 (diff)
Port from container.count()/int to container.size()/qsizetype
This change is driven by the deprecation of (some) container count() in favor of size(), so the int/qsizetype fixes are limited to the vicinity of count()/size() replacements. Pick-to: 6.3 Change-Id: If6606c9d4aec9bd1cf361efe8ffdf349ac031e79 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'examples/activeqt')
-rw-r--r--examples/activeqt/comapp/main.cpp2
-rw-r--r--examples/activeqt/qutlook/addressview.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/activeqt/comapp/main.cpp b/examples/activeqt/comapp/main.cpp
index 3d98555..9f8ba2b 100644
--- a/examples/activeqt/comapp/main.cpp
+++ b/examples/activeqt/comapp/main.cpp
@@ -188,7 +188,7 @@ Application *DocumentList::application() const
int DocumentList::count() const
{
- return m_list.count();
+ return m_list.size();
}
Document *DocumentList::item(int index) const
diff --git a/examples/activeqt/qutlook/addressview.cpp b/examples/activeqt/qutlook/addressview.cpp
index fd1e0d3..a0eaad4 100644
--- a/examples/activeqt/qutlook/addressview.cpp
+++ b/examples/activeqt/qutlook/addressview.cpp
@@ -149,7 +149,7 @@ QVariant AddressBookModel::data(const QModelIndex &index, int role) const
cache.insert(index, data);
}
- if (index.column() < data.count())
+ if (index.column() < data.size())
return data.at(index.column());
return QVariant();