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
443
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
e3eed4fc
Commit
e3eed4fc
authored
2 years ago
by
Prince Gupta
Committed by
Jean-Baptiste Kempf
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
qml: allow keyboard focus on cross button of album expand delegate
parent
e58c41dc
No related branches found
Branches containing commit
No related tags found
1 merge request
!2785
qml: allow keyboard focus on cross button of album expand delegate
Pipeline
#282880
passed with stages
Stage:
Stage:
in 43 minutes and 44 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
+49
-24
49 additions, 24 deletions
...gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
with
49 additions
and
24 deletions
modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
+
49
−
24
View file @
e3eed4fc
...
...
@@ -212,41 +212,65 @@ FocusScope {
}
}
header
:
Column
{
header
:
FocusScope
{
id
:
headerFocusScope
width
:
tracks
.
width
height
:
implicitHeight
bottomPadding
:
VLCStyle
.
margin_large
implicitHeight
:
col
.
implicitHeight
focus
:
true
Navigation.parentItem
:
root
Navigation.leftItem
:
enqueueActionBtn
Navigation.downAction
:
function
()
{
if
(
tracks
.
count
>
0
)
{
tracks
.
setCurrentItemFocus
(
Qt
.
TabFocus
)
}
else
{
root
.
Navigation
.
downAction
()
}
}
RowLayout
{
width
:
parent
.
width
/* The title of the albums */
Widgets.SubtitleLabel
{
id
:
expand_infos_title_id
Column
{
id
:
col
text
:
Helpers
.
get
(
model
,
"
title
"
,
I18n
.
qtr
(
"
Unknown title
"
))
anchors.fill
:
parent
bottomPadding
:
VLCStyle
.
margin_large
Layout.fillWidth
:
true
}
RowLayout
{
width
:
parent
.
width
/* The title of the albums */
Widgets.SubtitleLabel
{
id
:
expand_infos_title_id
Widgets.IconControlButton
{
iconText
:
VLCIcons
.
close
text
:
Helpers
.
get
(
model
,
"
title
"
,
I18n
.
qtr
(
"
Unknown title
"
))
Layout.rightMargin
:
VLCStyle
.
margin_small
Layout.fillWidth
:
true
}
Widgets.IconControlButton
{
iconText
:
VLCIcons
.
close
focus
:
true
onClicked
:
root
.
retract
()
Navigation.parentItem
:
headerFocusScope
Layout.rightMargin
:
VLCStyle
.
margin_small
onClicked
:
root
.
retract
()
}
}
}
Widgets.CaptionLabel
{
id
:
expand_infos_subtitle_id
width
:
parent
.
width
text
:
I18n
.
qtr
(
"
%1 - %2 - %3 - %4
"
)
.
arg
(
Helpers
.
get
(
model
,
"
main_artist
"
,
I18n
.
qtr
(
"
Unknown artist
"
)))
.
arg
(
Helpers
.
get
(
model
,
"
release_year
"
,
""
))
.
arg
(
_getStringTrack
())
.
arg
((
model
&&
model
.
duration
)
?
model
.
duration
.
formatHMS
()
:
0
)
Widgets.CaptionLabel
{
id
:
expand_infos_subtitle_id
width
:
parent
.
width
text
:
I18n
.
qtr
(
"
%1 - %2 - %3 - %4
"
)
.
arg
(
Helpers
.
get
(
model
,
"
main_artist
"
,
I18n
.
qtr
(
"
Unknown artist
"
)))
.
arg
(
Helpers
.
get
(
model
,
"
release_year
"
,
""
))
.
arg
(
_getStringTrack
())
.
arg
((
model
&&
model
.
duration
)
?
model
.
duration
.
formatHMS
()
:
0
)
}
}
}
...
...
@@ -272,6 +296,7 @@ FocusScope {
Navigation.parentItem
:
root
Navigation.leftItem
:
actionButtons
Navigation.upItem
:
headerItem
Widgets.TableColumns
{
id
:
tableColumns
...
...
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