Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Elisa
Commits
af9157ad
Commit
af9157ad
authored
May 22, 2021
by
Tranter Madi
🌧
Committed by
Nate Graham
May 25, 2021
Browse files
Move playlist's section sizer to BaseTheme
parent
8a1c4343
Pipeline
#63093
passed with stage
in 8 minutes and 16 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/qml/BaseTheme.qml
View file @
af9157ad
...
...
@@ -48,4 +48,16 @@ Item {
property
int
gridDelegateSize
:
170
property
int
viewSelectorSmallSizeThreshold
:
800
readonly
property
alias
sectionHeight
:
sectionSizer
.
implicitHeight
// calculate a fixed height for playlist's section delegates
// workaround for QTBUG-52595
Column
{
id
:
sectionSizer
visible
:
false
spacing
:
Kirigami
.
Units
.
smallSpacing
LabelWithToolTip
{
text
:
"
M
\n
M
"
;
level
:
2
}
LabelWithToolTip
{
text
:
"
M
"
}
}
}
src/qml/BasicPlayListAlbumHeader.qml
View file @
af9157ad
...
...
@@ -52,7 +52,7 @@ Rectangle {
id
:
albumHeaderTextColumn
Layout.fillWidth
:
true
Layout.preferredHeight
:
background
.
ListView
.
view
.
sectionSizer
.
implicit
Height
Layout.preferredHeight
:
elisaTheme
.
section
Height
Layout.leftMargin
:
!
LayoutMirroring
.
enabled
?
-
Kirigami
.
Units
.
smallSpacing
:
0
Layout.rightMargin
:
LayoutMirroring
.
enabled
?
-
Kirigami
.
Units
.
smallSpacing
:
0
...
...
src/qml/MediaPlayListView.qml
View file @
af9157ad
...
...
@@ -197,7 +197,6 @@ Kirigami.Page {
property
alias
list
:
playListView
ListView
{
id
:
playListView
readonly
property
alias
sectionSizer
:
sectionSizer
focus
:
true
clip
:
true
...
...
@@ -368,16 +367,6 @@ Kirigami.Page {
onTriggered
:
playListNotification
.
visible
=
false
}
}
// calculate a fixed hight for section delegates
// workaround for QTBUG-52595
Column
{
id
:
sectionSizer
visible
:
false
spacing
:
Kirigami
.
Units
.
smallSpacing
LabelWithToolTip
{
text
:
"
M
\n
M
"
;
level
:
2
}
LabelWithToolTip
{
text
:
"
M
"
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment