Skarsnik / QUsb2snes

A Qt based webserver for usb2snes. Users: go check usb2snes.com
https://skarsnik.github.io/QUsb2snes/
GNU General Public License v3.0
52 stars 33 forks source link

Sorting files in the USB2SNES view #119

Closed FoxLisk closed 2 years ago

FoxLisk commented 2 years ago

Qt 5.8 seems to be very not supported anymore? it's not even an option for downloading in the Qt installer tool. i don't think that's an issue but I did build this against a newer Qt so you might want to test it.

Skarsnik commented 2 years ago

This sort folder before file if I read this correctly?

I am not a fan of using the STL. The correct way would be to set a filter on the view but you need to make the file info available on it if I remember correctly, too much overhead x)

Can you edit the commit text to QFile2Snes : sort the usb2snes file view (or something similar)

FoxLisk commented 2 years ago

This sort folder before file if I read this correctly?

Yep; folders first, then files, all sorted case-insensitively

I am not a fan of using the STL. The correct way would be to set a filter on the view but you need to make the file info available on it if I remember correctly, too much overhead x)

I did not see a way to tell QT to sort the list automatically, but if you know how I'm happy to try that. I saw that was being done on the local files, but that's using a TreeView thing that the remote files aren't using, and I don't know nearly enough about Qt to know what the technical difficulties are in converting it.

Can you edit the commit text to QFile2Snes : sort the usb2snes file view (or something similar)

done!