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
432
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
5d956e61
Commit
5d956e61
authored
2 years ago
by
Prince Gupta
Committed by
Rémi Denis-Courmont
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
qml: fix restore index when media is played from play icon
parent
b4c14482
No related branches found
Branches containing commit
No related tags found
1 merge request
!2211
qml: fix restore index when media is played from play icon
Pipeline
#242032
passed with stage
Stage:
in 17 minutes and 18 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/gui/qt/widgets/qml/GridItem.qml
+6
-1
6 additions, 1 deletion
modules/gui/qt/widgets/qml/GridItem.qml
modules/gui/qt/widgets/qml/MediaCover.qml
+2
-2
2 additions, 2 deletions
modules/gui/qt/widgets/qml/MediaCover.qml
with
8 additions
and
3 deletions
modules/gui/qt/widgets/qml/GridItem.qml
+
6
−
1
View file @
5d956e61
...
...
@@ -232,7 +232,12 @@ T.Control {
Layout.preferredWidth
:
pictureWidth
Layout.preferredHeight
:
pictureHeight
onPlayIconClicked
:
root
.
playClicked
()
onPlayIconClicked
:
{
// emulate a mouse click before delivering the play signal as to select the item
// this helps in updating the selection and restore of initial index in the parent views
root
.
itemClicked
(
picture
,
mouse
.
button
,
mouse
.
modifiers
)
root
.
playClicked
()
}
DoubleShadow
{
id
:
unselectedShadow
...
...
This diff is collapsed.
Click to expand it.
modules/gui/qt/widgets/qml/MediaCover.qml
+
2
−
2
View file @
5d956e61
...
...
@@ -49,7 +49,7 @@ Rectangle {
// Signals
signal
playIconClicked
signal
playIconClicked
(
var
/* MouseEvent */
mouse
)
// Settings
...
...
@@ -86,7 +86,7 @@ Rectangle {
sourceComponent
:
Widgets.PlayCover
{
width
:
playIconSize
onClicked
:
playIconClicked
()
onClicked
:
playIconClicked
(
mouse
)
}
asynchronous
:
true
...
...
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