Fatih Uzunoglu
0b104fde23
qml: remove versioned built-in imports
3 years ago
Fatih Uzunoglu
c2205d23c3
qml: use qsTr() instead of I18n.qtr() for translation
I18n module was intending to provide translation through vlc_gettext().
I'm not sure why QTranslator was not the way chosen before, because it
directly offers this and using qsTr() has the advantage of better integration.
Translation is handled in a lower abstraction level through QJSEngine
(see QJSEngine::TranslationExtension) as opposed to using custom a QML type
through QQmlEngine.
Thanks to that, the `org.videolan.vlc` module import can be eliminated
in some files.
2 years ago
Fatih Uzunoglu
30c2634e72
qt: remove org.videolan.compat module
2 years ago
Leon Vitanos
35c6803f5e
qml: match playlistview topPadding with layout's padding
2 years ago
Fatih Uzunoglu
d6b6ac32c2
qml: remove `iconText` and use `text`, add and use `description` for accessibility and tool tip
2 years ago
Fatih Uzunoglu
3df6a79acd
qml: remove unnecessary `size` property of IconToolButton
2 years ago
Prince Gupta
345111da60
qml: allow overriding default focus handling from view loader
2 years ago
Pierre Lamot
fc787fe385
qml: fix qt6 parameters injection warning from BannerSource
2 years ago
Pierre Lamot
731960fffd
qml: fix qt6 parameters injection warning from Keys events
2 years ago
Pierre Lamot
486670531a
qml: fix qt6 parameters injection warning from DropArea
2 years ago
Pierre Lamot
c12cb47d0a
qml: add pagePrefix propery to leaf views to statisfy PageLoader in Qt6
Qt6 raise a warning when passing an initialization value to a non-existant
property in a component. At some point we may refactor theses view to inherit
from a common base. for now we just define the property where required
2 years ago
Fatih Uzunoglu
37d6c5192c
qml: simplify FrostedGlassEffect and use PartialEffect
2 years ago
Pierre Lamot
7dee44bfa6
qml: fix switching to medialib view from the player view from the menu
fix : #28409
2 years ago
Pierre Lamot
441b77b5c5
qml: avoid re-pushing the same view in history when navigating from the banner
fix : #28408
2 years ago
Pierre Lamot
89179610b3
qml: remove _oldViewProperties from MainDisplay
_oldViewProperties is never set
2 years ago
Prince Gupta
1fa7526be4
qml: make search field width adaptable
2 years ago
Prince Gupta
e9c189c01d
qml: improve spacing in top banner
2 years ago
Fatih Uzunoglu
597a2be401
qml: disable MainDisplay FrostedGlassEffect blending if background is opaque
2 years ago
Fatih Uzunoglu
ab853bd0a3
qml: use grouped property for fading edge in KeyNavigableListView instead of aliasing
2 years ago
Fatih Uzunoglu
0e2f937633
qml: PlaylistListView padding and spacing adjustment
2 years ago
Fatih Uzunoglu
d42ac8aee6
qml: remove unnecessary FocusScope in MainDisplay
2 years ago
Fatih Uzunoglu
afc451457e
qml: narrow where the effect is applied in MainDisplay for rendering optimization
2 years ago
Fatih Uzunoglu
93c4b1e401
qml: set global menu button checked when menu is shown
3 years ago
Fatih Uzunoglu
be6d1e674d
qml: use ListSelectionModel
3 years ago
Pierre Lamot
e36f887b40
qml: update PageLoader loadView implementation
* page model is now a property of PageLoader
* page are loaded recursively and imperatively
* function parameters reflects updated History implementation
* page name is exposed in place of the former view property
3 years ago
Pierre Lamot
e13f4cdaf1
qml: move loadview function from StackViewExt to PageLoader
the component that we use to load view is PageLoader
3 years ago
Pierre Lamot
a02a072728
qt: change History from a dictionary structure to a flat list + property dictionary
exposing History properties as a single dictionary simplifies how view can
retrieve or alter its properties, by directly writing to the History.viewProp object
Recursive nature of the history path was underused, and we can achieve the same
behavior by having unique names for intermediates view properties
3 years ago
Pierre Lamot
1481c3cbb6
qml: make TopBanner a Control
3 years ago
Pierre Lamot
c841bdaf6b
qml: update navigation in MainDisplay
Now that PageLoader is a Control, we no longer need for force the focus reason
thru js function
3 years ago
Pierre Lamot
3d52e0489a
qml: force active focus on the SearchBox input field when expanding
widget state is no longer publicly exposed
3 years ago
Pierre Lamot
4f747b9dcd
qml: update navigation in BannerSource
3 years ago
Pierre Lamot
269f6bfc7e
qml: remove unused property in bannersource
3 years ago
Pierre Lamot
2353ac343f
qml: no longer expose unused contentModel property
3 years ago
Pierre Lamot
cf0859ddb7
qml: make use of SortCtx
3 years ago
Pierre Lamot
798b9405c7
qml: refactor page context restoration
3 years ago
Pierre Lamot
59a6e052fd
qml: factorize usage of sortModel
3 years ago
Pierre Lamot
351d942518
qml: assume sort models are uniform in SortControl
3 years ago
Pierre Lamot
ea88f773ae
qml: remove extra-local actions
they are no longer used
3 years ago
Pierre Lamot
0f793ac339
qml: make use of SearchContext
3 years ago
Pierre Lamot
1d59f4b75a
qml: factorize isSearchable propperty
3 years ago
Pierre Lamot
82dd1bd2c5
qml: use main context to track hasGridListMode
3 years ago
Pierre Lamot
5603008752
qml: rename isViewMultiView to hasGridListMode
feature concerns list/grid only, former naming was obscure
3 years ago
Pierre Lamot
511304d8b1
qml: factorize isViewMultiView properties
3 years ago
Alexandre Janniaux
67e2541b19
qt: MainInterface: decode partially encoded MRL on drop
When using drag&drop to play a media with characters that would need
encoding, especially spaces, the system will provide the correct URL to
the DropArea but Qt will encode it partially. Since we will encode it
afterwards, we can just decode it completely and forward it as-is to the
playlist controller.
Fixes dropping URL with spaces from a browser to VLC.
3 years ago
mohit-marathe
b6afedd0fb
qt: remove call to showPlayer
3 years ago
Alexandre Perraud
97ab1d297e
qt : new menu and search svg icons
Rename menu to more
3 years ago
Pierre Lamot
f27aa54bf2
qml: add History.match History.exactMatch to check for current path
3 years ago
Pierre Lamot
ba6aced1c3
qml: fix keyboard navigation in NoMedialibHome
3 years ago
Pierre Lamot
957c1ef0a5
qml: fix access to missing variable
_inhibitMiniPlayer has be removed in c038375a31
3 years ago
Pierre Lamot
becc4b1ed3
qml: inline calls to g_mainDisplay.play
this removes unqualified access to g_mainDisplay
3 years ago