Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
438
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
fe9388b9
Commit
fe9388b9
authored
2 years ago
by
Prince Gupta
Committed by
François Cartegnie
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
qml: make player playlistview resizable
parent
b92dbdc4
No related branches found
Branches containing commit
No related tags found
1 merge request
!3001
qml: make player playlistview resizable
Pipeline
#296935
passed with stage
Stage:
in 19 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/qt/player/qml/Player.qml
+19
-3
19 additions, 3 deletions
modules/gui/qt/player/qml/Player.qml
with
19 additions
and
3 deletions
modules/gui/qt/player/qml/Player.qml
+
19
−
3
View file @
fe9388b9
...
...
@@ -532,14 +532,15 @@ FocusScope {
edge
:
Widgets
.
DrawerExt
.
Edges
.
Right
state
:
playlistVisibility
.
isPlaylistVisible
?
"
visible
"
:
"
hidden
"
component
:
Rectangle
{
// NOTE: Take the minimumWidth into account.
width
:
Math
.
max
(
playlistView
.
minimumWidth
,
(
rootPlayer
.
width
+
playlistView
.
rightPadding
)
/
4
)
width
:
Helpers
.
clamp
(
rootPlayer
.
width
/
resizeHandle
.
widthFactor
,
playlistView
.
minimumWidth
,
(
rootPlayer
.
width
+
playlistView
.
rightPadding
)
/
2
)
height
:
playlistpopup
.
height
color
:
rootPlayer
.
colors
.
setColorAlpha
(
rootPlayer
.
colors
.
topBanner
,
0.8
)
PL.PlaylistListView
{
id
:
playlistView
...
...
@@ -571,6 +572,21 @@ FocusScope {
else
controlBarView
.
forceActiveFocus
()
}
// TODO: remember width factor?
Widgets.HorizontalResizeHandle
{
id
:
resizeHandle
anchors
{
top
:
parent
.
top
bottom
:
parent
.
bottom
left
:
parent
.
left
}
atRight
:
false
targetWidth
:
playlistpopup
.
width
sourceWidth
:
rootPlayer
.
width
}
}
}
onStateChanged
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment