summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2013-06-12 10:08:33 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-24 17:22:52 +0200
commita9a21c5bf5d078009c50a6820cc79fa8dc2c8f4f (patch)
tree859928dfc20210c821d261a279c5aeb3c1a8738e
parent7fa4ba5ea6730a56132d051a985563df68d29c25 (diff)
Document the deprecation of setRoleNames
The API was deprecated in qtbase to make the QAbstractItemModel API more consistent. Hence, it is now being put in the porting guide to simplify the effort for the Qt users. Task-number: QTBUG-31684 Change-Id: I9350f7752accd90b8fcc9f2a6d53554e3a1e3dd2 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
-rw-r--r--doc/src/source-breaks.qdoc2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/src/source-breaks.qdoc b/doc/src/source-breaks.qdoc
index 13cfbde2e..109571fff 100644
--- a/doc/src/source-breaks.qdoc
+++ b/doc/src/source-breaks.qdoc
@@ -119,6 +119,8 @@ The following sections lists the API changes in each module and provides recomme
\li \l{QAbstractItemModel::createIndex} method now only provides the void* and quintptr overloads, making calls with a literal \c 0
(createIndex(row, col, 0)) ambiguous. Either cast (quintptr(0)) or omit the third argument(to get the void* overload).
\endlist
+ \li \l{QAbstractItemModel::setRoleNames()} is deprecated. Use \l{QAbstractItemModel::roleNames()} instead.
+ \l{QAbstractItemModel::roleNames} is virtual now to allow a consistent API with the rest of QAbstractItemModel. Reimplementing the virtual methods to provide the elements is preferred to setting those directly.
\li Default value of the \l{QSortFilterProxyModel::dynamicSortFilter} property is changed to \c{true}.
\li \l{QString::mid}, \l{QString::midRef}, and \l{QByteArray::mid} now return an empty \c{QString}, \c{QStringRef}, and \c{QByteArray} respectively,
if the position passed is equal to the length (that is, right after the last character/byte).