File Browser Branch

Alexander Stippich a.stippich at gmx.net
Thu May 17 19:46:52 UTC 2018


Hello,

I pushed a branch "file_browser" which contains the changes for a simple file 
browser. It is probably a somewhat naive implementation since my c++ skills 
are still limited, but it seems to work with a couple of issues exposed in 
Elisa.
It only allows browsing the home directory. Only audio files are shown and 
only viewing is possible. Copy, paste etc. is not implemented. Filtering and 
sorting is implemented similarly to the other views.

Any help and/or feedback is appreciated, of course. 

It is based on KIO, which provide exactly what is needed. Requiring KIO should 
not be a problem, since it is available on all platforms (I think even Android 
is now supported). One could also try to make the file browser optional. 
QFileSystemModel does not work for this use-case, unfortunately.

Current issues (that I know of):
-Loading of the metadata for the metadata view is blocking. I also don't like 
the interface I've implemented via the proxy model. Maybe we can create an 
interface for the trackslistener to offload the scanning?
-Files without title, artist and album tags do not work/show up yet correctly. 
Part of this lies in the issue with the mediaplaylist I mentioned in the 
previous email. The other is due to Elisa expecting these tags to be present. 
The scanning function in elisautils currently sets the tracks to invalid if 
those are missing, but just removing the checks is not sufficient.  Some help 
here would be great.
-The icons for audio files are vertically not center-aligned. This is a breeze 
icon issue. I've already reported a bug, but no activity so far.
-I'm not able to recreate the plugins.qmltypes, it always complaints about 
"Component not ready"

Best regards,
Alex




More information about the Elisa mailing list