┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2022-08-15 15:02:13 +0200
committerKai Uwe Broulik <[email protected]>2022-08-15 15:02:13 +0200
commitfac08af081467a798a649cde6f8ca615e797c137 (patch)
tree40ef9d3c824e62e1840e917b55639c14aa925c53 /src/dolphinmainwindow.h
parentf45d2e985422a0ca96098155a20d32ec4783e5fa (diff)
Don't include `iconOverlays` in rolesData if it is empty
If this role isn't in the model yet, it would be `QVariant::Invalid` which is obviously a distinct type from an empty string list. This means `KFileItemModel::setData` treats them non-equal and potentially does expensive operations on the model, which is called every time a role is resolved in `KFileItemModelRolesUpdater`. With this change, the number of pointless layout calculations is significantly reduced.
Diffstat (limited to 'src/dolphinmainwindow.h')
0 files changed, 0 insertions, 0 deletions