summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/snippets
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2025-07-24 12:58:24 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2025-07-29 16:45:52 +0200
commit26c24bae7776e7cff83e5ea834e7f679ba59250f (patch)
tree0da857eacd363416fa17586a2d809f8b5abee6f9 /src/corelib/doc/snippets
parent16d9ed713a32b0c3798788ed917d42a946782514 (diff)
QAIM: add internally used role values to Qt::ItemDataRole enum
Some Qt models use role values below Qt::UserRole for special purposes. To avoid that we keep reusing the same value for different models and potentially cause conflicts across modules (which might already be a problem when Qt RemoteObject's QAIM wrapper is used on a QStandardItemModel or QFileSystemModel, as both use Qt::UserRole - 1), add those values to the Qt::ItemDataRole enum, but omit them from the documentation. Not included in this change are the Qt::UserRole + 1/2/3 values we use in QFileSystemModel for FilePath/Name/Permissions roles. We won't use role values above Qt::UserRole in Qt in the future. Use these enum values then internally where we currently hardcode the values. Pick this back to 6.10 to avoid conflicts. This is not an API addition. Amends, at least, 6e8563fb2d59e8715aa2a34bb75bb2712de194cb. Pick-to: 6.10 Change-Id: I6cd93c32b5c6709355b6f048f9d6d574421d6fbb Reviewed-by: Artem Dyomin <artem.dyomin@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/doc/snippets')
0 files changed, 0 insertions, 0 deletions