https://bugs.kde.org/show_bug.cgi?id=513235

--- Comment #2 from Ramil <[email protected]> ---
Git commit 989c0f4f0319f7d8e573c8a88fe8011bd3315466 by Ramil Nurmanov.
Committed on 11/06/2026 at 10:30.
Pushed by meven into branch 'master'.

Allow grouping by a separate criterion

Add an explicit group role to Dolphin views so items can be grouped
independently from the active sort role.
Previously, Dolphin's grouped view always used the current sort role as the
grouping criterion. This meant that grouping and sorting were tied together,
for example grouping by type also required sorting by type.
This change adds a separate Group By menu. It replaces the previous Show in
Groups toggle and allows the user to disable grouping, keep the old Same as
Sort behavior, or explicitly group by a selected criterion.
When an explicit group role is set, the model keeps groups stable and uses the
normal sort role as a secondary key inside each group. The roles
updater also receives the active group role, so roles used only for grouping
are still updated correctly.
Related: bug 416134, bug 510670, bug 46393

M  +2    -2    src/dolphinpart.rc
M  +2    -2    src/dolphinui.rc
M  +2    -2    src/dolphinuiforphones.rc
M  +14   -0    src/kitemviews/kfileitemlistview.cpp
M  +1    -0    src/kitemviews/kfileitemlistview.h
M  +67   -11   src/kitemviews/kfileitemmodel.cpp
M  +3    -0    src/kitemviews/kfileitemmodel.h
M  +8    -0    src/kitemviews/kfileitemmodelrolesupdater.cpp
M  +15   -3    src/kitemviews/kitemlistview.cpp
M  +1    -0    src/kitemviews/kitemlistview.h
M  +38   -3    src/kitemviews/kitemmodelbase.cpp
M  +9    -0    src/kitemviews/kitemmodelbase.h
M  +1    -0    src/settings/applyviewpropsjob.cpp
M  +6    -0    src/settings/dolphin_directoryviewpropertysettings.kcfg
M  +1    -1    src/settings/viewmodes/generalviewsettingspage.cpp
M  +82   -0    src/tests/kfileitemmodeltest.cpp
M  +33   -0    src/views/dolphinview.cpp
M  +10   -0    src/views/dolphinview.h
M  +90   -16   src/views/dolphinviewactionhandler.cpp
M  +10   -12   src/views/dolphinviewactionhandler.h
M  +14   -0    src/views/viewproperties.cpp
M  +3    -0    src/views/viewproperties.h

https://invent.kde.org/system/dolphin/-/commit/989c0f4f0319f7d8e573c8a88fe8011bd3315466

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to