Cleanup file browser implementation
ClosedPublic

Authored by astippich on Jul 14 2019, 12:57 PM.

Details

Summary

Extend the GridBrowserDelegate and base the delegate
for file browsing on it.
Fix loading of playlist via file browser.
Cleanup unused methods and rename some roles.

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
astippich requested review of this revision.Jul 14 2019, 12:57 PM
astippich created this revision.
$ (arcpatch-D22454) kb && elisa
Total of 'trivial' dependency cycles detected & eliminated: 2

Building elisa from guessed_from_cmdline (1/1)
        Source update complete for elisa: Skipped
        Compiling... succeeded (after 28 seconds)
        Installing.. succeeded (after 0 seconds)

<<<  PACKAGES SUCCESSFULLY BUILT  >>>
elisa
 
Removing 1 out of 23 old log directories...
:-)
Your logs are saved in /home/nate/kde/src/log/2019-07-14-03
QQmlApplicationEngine failed to load component
qrc:/qml/ElisaMainWindow.qml:266 Type ContentView unavailable
qrc:/qml/ContentView.qml:376 Type FileBrowserView unavailable
qrc:/qml/FileBrowserView.qml:51 Cannot assign to non-existent property "onLoadPlayListFromUrl"

onLoadPlayListFromUrl is still used in src/qml/FileBrowserView.qml, but you've deleted it.

astippich updated this revision to Diff 61739.Jul 14 2019, 1:39 PM
  • completely remove signal
astippich updated this revision to Diff 61743.Jul 14 2019, 1:57 PM
  • wrap main label in case no secondary text is displayed

friendly ping

ngraham requested changes to this revision.Jul 23 2019, 6:04 PM

Oops, my bad. Just one thing to change:

src/qml/GridBrowserDelegate.qml
160

onClicked should do the same thing as Keys.onReturnPressed and Keys.onEnterPressed so they all have the same behavior.

This revision now requires changes to proceed.Jul 23 2019, 6:04 PM
astippich added inline comments.Jul 23 2019, 6:45 PM
src/qml/GridBrowserDelegate.qml
160

good catch, that was stupid

astippich updated this revision to Diff 62431.Jul 23 2019, 6:52 PM
  • use clicked consistently
  • fix click with audio files
ngraham accepted this revision.Jul 23 2019, 7:11 PM
This revision is now accepted and ready to land.Jul 23 2019, 7:11 PM
This revision was automatically updated to reflect the committed changes.