summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textdocument-end/textdocumentendsnippet.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2025-09-10 13:50:07 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2025-09-13 07:29:46 +0200
commita4ae63f7c10e0ff07a90b9d0a4aa619688d12179 (patch)
treebf5f86be9423cdc327d1b91dc3a6b80ed732de28 /src/gui/doc/snippets/textdocument-end/textdocumentendsnippet.cpp
parent14b3f3da3cc466bb3227e252385175dac054f227 (diff)
QRM: don't flag items as editable if we don't implement setData
Check for isMutable in the flags() implementation before checking type specific attributes. We bail out of setData() and setItemData() immediately if isMutable() returns false, so this produces a consistent behavior. Explicitly verify in the test that the ItemIsEditable flag is only set when it should be. Pick-to: 6.10 6.10.0 Change-Id: I0bb4ebcf5870b59fec12f84861d772be5d68735b Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-end/textdocumentendsnippet.cpp')
0 files changed, 0 insertions, 0 deletions