diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/activeqt/comapp/main.cpp | 2 | ||||
-rw-r--r-- | examples/activeqt/qutlook/addressview.cpp | 2 |
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(); |