A bunch of models, like KFilePlacesModel and KDirModel use random hexadecimal numbers for their roles. What's the history behind that and can this be cleaned up?
Description
Description
Comment Actions
The idea is that it removes the risk of conflicting with more usual numbers like UserRole or UserRole+1 that some proxymodel might use as well.
What problem do the hexadecimal numbers create?
Comment Actions
Perhaps some code comments indicating this in relevant places could help clear up the ambiguity?
Comment Actions
This is already there in kdirmodel.h
Here's a MR for doing the same in kfileplacesmodel.h: https://invent.kde.org/frameworks/kio/-/merge_requests/130
Any other model that needs this?