summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qobject.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2025-10-05 00:08:45 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2025-10-05 22:56:46 +0200
commit72cee72eb0913d049e352a7b45920e6012df1aa6 (patch)
tree4dece861fddcc48fa8d315be80f91b57dd2099c0 /src/corelib/kernel/qobject.cpp
parent21a8a28fb041787448ca461f9c4ace99cadbf04d (diff)
QRM: don't return pointer-to-const from parentRow
We want to be able to get the parent from one row and make it the parent of another row, and returning a `const row *` from parentRow makes that impossible without a hacky const-cast. Returning a pointer to const is not necessary. The inner state of the parent row has no impact on the observable state of the child from which it is returned. Pick-to: 6.10 Change-Id: I1487cf2a2ed5122dd0e3530af6e055ed56e34fb7 Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
0 files changed, 0 insertions, 0 deletions