This allows focus to be reset on the last item when navigating back rather
that having it on the navigation bar and having to go down to get it on the
item.
This doesn't force the focus when navigating with history buttons or when
changing tab.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
This dialog allows to ask simple Yes/No questions, such as action
confirmation, with a simple callback mechanism.
The modal dialog need to be attached to the root widget to be displayed
properly.
Using vlc_dialog_wait_question for this would block the UI.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
MlFoldersModel did require a vlc_medialibrary_t instance in its constructor
which can't be provided from QML.
* A setMl accessor is kept to keep it easily usable from Qt native.
* provide named roles
* remove delete role in favor of the exposed function (doesn't makes sens to
remove an entry by setting one of its properties)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
We need to monitor the original model directly as the DelegateModel won't
notify us when the data is updated.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
This prepare for next patch where the ExpandGridView needs both the model and
the delegate model
Fix name collision in calling sites.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
the behavior is not shared amongst the view where it's used
(different behavior in the Genre view)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Switch are optimized at least to the same form anyway, and they provide
better warnings in case of missing items as well as preventing typos.
It also fixes a cast warning as OMX_STATETYPE was used instead of the
enum ERRORTYPE in the error to string function, and adds missing items
from the enums.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Encoded output is stored in VLCs settings by adding the
AOUT_VAR_SPDIF_FLAG flag to the integer. Make sure this
configuration is also picked up again after restart, if it is stored
and actually available.
Credits: Andrey Y.
fixes#21170
the genre view can now either load the regular view presenting the genres
or load a specialized album view for a defined genre
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>