summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/textdocument-imagedrop/textedit.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2025-08-01 13:08:41 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2025-08-05 13:40:47 +0200
commit6b92bc168717cd28ad2f0a1c62d4d4d099b8a35f (patch)
tree096901f66fe3de3748cc069c4162a4f6279f4068 /src/widgets/doc/snippets/textdocument-imagedrop/textedit.cpp
parent67b99c2a106311e167e027426f7e2efa20cbc6ca (diff)
QRM: reuse read/writeRole helpers in itemData/setItemData
There's no reason to duplicate the logic and specialization for QObject, we do all of that in the helpers already. The helpers also fall-back to Qt::DisplayRole when a property-lookup for Qt::EditRole fails, which we also want for itemRole - if roleNames() includes that role, then it should be part of the map of values returned. This requires a small adjustment to the test, which already takes into account that Qt::EditRole is faked in our implementation anyway. Pick-to: 6.10 Change-Id: Id3d77cf7e83b4220ab2ac8aae7bba2a9de7d16d8 Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/textdocument-imagedrop/textedit.cpp')
0 files changed, 0 insertions, 0 deletions