From 916ce646b7d0d5567613c0767f485fe56a92d3f1 Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Tue, 25 Jun 2024 17:23:55 +0200 Subject: [PATCH] Rename QIdentityProxyModel::isHandleSourceLayoutChanges() ... to handleSourceLayoutChanges(), as this is more in line with the Qt naming guidelines. Amends 675b4f63feab7c81c75e49f6dea82a39dd18f489. Change-Id: Iea515693337b8b5332df192191bd9ec3e6cdd65c Reviewed-by: Ahmad Samir Reviewed-by: Axel Spoerl (cherry picked from commit ae7a8c84b0c65696ca6eda188bb54a50d8ef6e28) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/itemmodels/qidentityproxymodel.cpp | 2 +- src/corelib/itemmodels/qidentityproxymodel.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/itemmodels/qidentityproxymodel.cpp b/src/corelib/itemmodels/qidentityproxymodel.cpp index 2325a8e5a1d..ffa038d6183 100644 --- a/src/corelib/itemmodels/qidentityproxymodel.cpp +++ b/src/corelib/itemmodels/qidentityproxymodel.cpp @@ -376,7 +376,7 @@ void QIdentityProxyModel::setHandleSourceLayoutChanges(bool b) Returns \c true if this proxy model handles the source model layout changes, otherwise returns \c false. */ -bool QIdentityProxyModel::isHandleSourceLayoutChanges() const +bool QIdentityProxyModel::handleSourceLayoutChanges() const { return d_func()->m_handleLayoutChanges; } diff --git a/src/corelib/itemmodels/qidentityproxymodel.h b/src/corelib/itemmodels/qidentityproxymodel.h index c8fc9d21b73..456e108082e 100644 --- a/src/corelib/itemmodels/qidentityproxymodel.h +++ b/src/corelib/itemmodels/qidentityproxymodel.h @@ -44,7 +44,7 @@ public: 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 isHandleSourceLayoutChanges() const; + bool handleSourceLayoutChanges() const; protected: QIdentityProxyModel(QIdentityProxyModelPrivate &dd, QObject* parent);