Alphabetical order issue with multi-level categories
FP1404 opened this issue ยท 16 comments
I will look into it and see if I can fix it thank you. It does seem odd, the first The power entry is out of order but the later ones are ok
I think the first subcategory you input (i.e. the power) gets "locked" and
cannot be ordered anymore.
Thank you
that would work only up to 9. 10 up would look odd, unless you added a preceeding 0.
01
02
03
10
etc
1
10
2
etc
Apart from this issue, how are you finding QualCoder?
OK, I think this is fixed now. I have applied this in the Code Text section. I used a sort function for the QTreeWidget. Please let me know, then I can apply the same solution in other sections of QualCoder.
That's fantastic - thank you. I guess I need to re-install QC through the source, which has been updated. I usually run it through the Windows executable, which I don't think has been updated. Anyway, regarding your question about how I am finding it QualCoder, it's fantastic software. In the past, I used to work on NVivo and MAXQDA but it's been almost 8 months I have been using QualCoder for my research projects (there will be an article coming up where I will be mentioning this software). It's light, powerful, and comprehensive. An undo or sort of history function would be useful but I know it may not be feasible. Thanks for all your work!
Finally managed to run QualCoder from source - I am currently on a university-managed device - and the solution doesn't seem to work (see attached); actually, ordering is not all over the place across different levels. (You may have noticed that I deleted a couple of messages. I thought I had done something wrong and didn't want to create any confusion)
ordering is not all over the place across different levels
Sorting is in descending order. That should be changed to QtCore.Qt.SortOrder.AscendingOrder
(line 677). Other than that, your examples look fine to me. Or am I missing something?
However, one problem is still left: The sorting is currently only applied when the code tree is loaded initially. We also need to add it to other functions like add_code()
and merge_category()
.
Sorting is in descending order. That should be changed to QtCore.Qt.SortOrder.AscendingOrder (line 677). Other than that, your examples look fine to me. Or am I missing something?
No, you are right. Thank you for checking it
However, one problem is still left: The sorting is currently only applied when the code tree is loaded initially. We also need to add it to other functions like add_code() and merge_category().
I trust your judgement - I am not a programming/coding specialist, just a regular QualCoder user :)
Yes sure. I have time tonight to fix this. Sorry - my error in testing, I uploaded the Descending and not the Ascending order code.
Re re add code and merge categories etc. They will be updated anyway, because the fill_tree method is called. And its in the fill_tree method that the ordering is done.
OK 10.09pm AEST. Updated now for I hope all code tree displays - i.e. in coding and in reports.
Yes. install from source for now. It will be a little while before another release is made with an exe.
It's great to hear that you are finding QualCoder really useful. Wonderful re publication - please let me know when it comes out.
add code and merge categories etc. They will be updated anyway
You are right, fill_tree() is called in update_dialog_codes_and_categories() which is called in add_code()... Missed that, my bad.
For me, everything is working fine now!
Nice to see that you also corrected the small error in save_backup().
OK closing issue soon. I think I updated the code tree display everywhere. let me know if not. Luckily an easy fix.
@kaixxx Re the collab branch. Is it able t obe merged now? I am thinking there will be some conflicts in some files eg main.py and code text.py
the collab branch. Is it able t obe merged now?
Let me have a final look. It should be ready, but I have a cold right now and need a clear mind for some final checks. I will also resolve any conflicts with the master branch.