Rename QIdentityProxyModel::isHandleSourceLayoutChanges()

... to handleSourceLayoutChanges(), as this is more in line with the
Qt naming guidelines.

Amends 675b4f63feab7c81c75e49f6dea82a39dd18f489.

Pick-to: 6.8
Change-Id: Iea515693337b8b5332df192191bd9ec3e6cdd65c
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
Ivan Solovev 2024-06-25 17:23:55 +02:00
parent 17bf4cd980
commit ae7a8c84b0
2 changed files with 2 additions and 2 deletions

View File

@ -376,7 +376,7 @@ void QIdentityProxyModel::setHandleSourceLayoutChanges(bool b)
Returns \c true if this proxy model handles the source model layout Returns \c true if this proxy model handles the source model layout
changes, otherwise returns \c false. changes, otherwise returns \c false.
*/ */
bool QIdentityProxyModel::isHandleSourceLayoutChanges() const bool QIdentityProxyModel::handleSourceLayoutChanges() const
{ {
return d_func()->m_handleLayoutChanges; return d_func()->m_handleLayoutChanges;
} }

View File

@ -44,7 +44,7 @@ public:
bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) override; bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) override;
bool moveColumns(const QModelIndex &sourceParent, int sourceColumn, int count, const QModelIndex &destinationParent, int destinationChild) override; bool moveColumns(const QModelIndex &sourceParent, int sourceColumn, int count, const QModelIndex &destinationParent, int destinationChild) override;
bool isHandleSourceLayoutChanges() const; bool handleSourceLayoutChanges() const;
protected: protected:
QIdentityProxyModel(QIdentityProxyModelPrivate &dd, QObject* parent); QIdentityProxyModel(QIdentityProxyModelPrivate &dd, QObject* parent);