Bug 479044 - Ability to sort columns in system monitor by drag-and-drop
Summary: Ability to sort columns in system monitor by drag-and-drop
Status: RESOLVED DUPLICATE of bug 479326
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (show other bugs)
Version: 5.27.10
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2023-12-26 20:44 UTC by Enrico
Modified: 2024-02-01 16:40 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Column sorting issue (3.33 MB, video/webm)
2023-12-26 20:44 UTC, Enrico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico 2023-12-26 20:44:22 UTC
Created attachment 164457 [details]
Column sorting issue

SUMMARY
***
Hello,
in the last systemmonitor I can't sort the columns up or down. I can sort a column, but then I can't order any other column. The sorting seems possible only on the default column.

The terminal returns this error:
TableView.selectionModel.model is not compatible with the model displayed in the view

***
STEPS TO REPRODUCE
1. open systemmonitor
2. Try to sort a column
3. Try to sort another column

OBSERVED RESULT
Systemmonitor can sometimes sort the first colum clicked, but it doesn't sort the others

EXPECTED RESULT
Sort up/down should always work

SOFTWARE/OS VERSIONS
Operating System: KaOS (2023) 
KDE Plasma Version: 5.91.0
KDE Frameworks Version: 5.247.0
Qt Version: 6.6.1
Kernel Version: 6.5.11-1 (64-bit)
Graphics Platform: Wayland
Comment 1 Tom Max 2023-12-28 09:42:04 UTC
the problems seems related to this warning:

qrc:/qt/qml/org/kde/ksysguard/table/BaseTableView.qml:55:5: QML TableViewHeader: Cannot change current index: TableView.selectionModel.model is not compatible with the model displayed in the view

when a different columm is clicked, QML reject the event as the data model is different from the expected model

Looking at the cpp code each column has a model which can be different from model used from other column, 
so probably only the CPU column has the expected data model and for that it works.

Probably the QML side needs a review in order to accept each model, can somebody confirm ?
Comment 2 Nate Graham 2024-01-11 18:49:24 UTC
Columns are sorted using the "Configure Columns" menu item in the three-dor menu.

I do agree with the premise that you should be able to sort columns by drag-and-drop, the way you an in other places. Let's make the bug report about that.
Comment 3 Arjen Hiemstra 2024-02-01 16:40:06 UTC

*** This bug has been marked as a duplicate of bug 479326 ***