Fatih Uzunoglu
c7b294d94c
qml: avoid using `Array.isArray()`
See QTBUG-112291.
2 years ago
Pierre Lamot
04a49bff37
qml: use nullish coalescence and optional chaining to simplify conditions
optional chaining was introduced in 6.2
nullish coalescence was introduced in 5.15
no functional changes
2 years ago
Fatih Uzunoglu
0a0bfaa34c
qml: expand playlist button drag&drop functionality to playlist window
2 years ago
Fatih Uzunoglu
b425a305a9
qml: use loader for maindisplay playlist
2 years ago
Pierre Lamot
4ddf10e92b
qml: use function syntax in Connections objects
using implicit signal handler is deprecated since Qt5.15
2 years ago
Fatih Uzunoglu
3a2e437152
qt: port old GLSL ES shader into GLSL 440 and automate compilation into qsb
3 years ago
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
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
Fatih Uzunoglu
37d6c5192c
qml: simplify FrostedGlassEffect and use PartialEffect
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
Fatih Uzunoglu
597a2be401
qml: disable MainDisplay FrostedGlassEffect blending if background is opaque
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
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
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
269f6bfc7e
qml: remove unused property in bannersource
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
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
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
mohit-marathe
b6afedd0fb
qt: remove call to showPlayer
3 years ago
Pierre Lamot
f27aa54bf2
qml: add History.match History.exactMatch to check for current path
3 years ago
Pierre Lamot
becc4b1ed3
qml: inline calls to g_mainDisplay.play
this removes unqualified access to g_mainDisplay
3 years ago
Pierre Lamot
d8c68c8028
qml: remove unecessary late binding
3 years ago
Fatih Uzunoglu
a5b564b7ee
qml: do not push the same view to the navigation stack
3 years ago
Benjamin Arnaud
6e82b5b0f0
qml: Update the History.previous usage
3 years ago
Fatih Uzunoglu
43027b29ba
qml: use Pane in PlaylistListView
3 years ago
Fatih Uzunoglu
c038375a31
qml: use anchors for control bar animation
3 years ago
Fatih Uzunoglu
5478d1995c
qml: inherit Pane template in ControlBar
3 years ago
Prince Gupta
f30f101ce8
qml: don't show overlay when playlist is not docked
3 years ago
Fatih Uzunoglu
fd7e823c1f
qml: use horizontalPadding and verticalPadding
3 years ago
Benjamin Arnaud
82fd5e1af8
qml/MainDisplay: Add the 'positionSliderY' property
3 years ago
Pierre Lamot
6e1e84993f
qml: prefer let & const over var in JS functions
3 years ago
Fatih Uzunoglu
4c62546566
qml: fix M401 in MainDisplay.qml
3 years ago
Pierre Lamot
4df18ea2aa
qml: update import statements to require at least Qt 5.12
3 years ago
Fatih Uzunoglu
cf244f6c63
qt: do not reload medialibrary each time going back from player view
3 years ago
Fatih Uzunoglu
1302c05fad
qml: add D&D functionality to the Playqueue button
3 years ago
Pierre Lamot
58248c4ec1
qml: use ColorContext to define colors in the application
3 years ago
Pierre Lamot
b857c6816b
qml: fix tabbutton active status
3 years ago
Benjamin Arnaud
e10a5dd7f6
qml/MainDisplay: Update paddings implementation
3 years ago