Skip to content

[Python] Fix list element sorting in view, add QJsonModel.clear#17

Merged
dridk merged 2 commits intodridk:masterfrom
davidlatwe:master
Oct 20, 2020
Merged

[Python] Fix list element sorting in view, add QJsonModel.clear#17
dridk merged 2 commits intodridk:masterfrom
davidlatwe:master

Conversation

@davidlatwe
Copy link
Contributor

Hi @dridk , this PR fix the list element sorting in Python implementation.

Previously the index has converted into string type, and the sorting result is not desirable, 👇🏼

image

After the change, this should be the expected result, 👇🏼

image

Also, I have added the clear method which is being called in the test case, but not actually being implemented.

Thanks :)

@dridk
Copy link
Owner

dridk commented Oct 20, 2020

Thanks ! Interesting feature would be to sort fields by clicking on header .
@see https://doc.qt.io/qt-5/qabstractitemmodel.html#sort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants