Commit a93eac2c authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Fix Layout warnings

Using Layout.column/row in conjunction with a Repeater causes a tonne of warnings.
Since we have to use two Repeaters (one for label, one for slider),
lay them out top to bottom and specify the number of rows (since GridLayout
isn't smart enough to enforce a column count when in top to bottom mode...)
parent 62fe68d4
......@@ -151,13 +151,12 @@ ColumnLayout {
}
GridLayout {
columns: 2
rows: Math.max(1, channelSliderRepeater.count)
flow: GridLayout.TopToBottom
VolumeSlider {
id: volumeSlider
Layout.columnSpan: 2
Layout.column: 0
Layout.row: 1
Layout.alignment: Qt.AlignTop
visible: !balanceButton.checked
......@@ -173,8 +172,6 @@ ColumnLayout {
Label {
Layout.alignment: Qt.AlignTop | Qt.AlignRight
Layout.column: 0
Layout.row: index + 1
text: i18nc("Placeholder is channel name", "%1:", modelData)
}
}
......@@ -184,8 +181,6 @@ ColumnLayout {
model: balanceButton.checked ? RawChannels : null
VolumeSlider {
Layout.column: 1
Layout.row: index + 1
Layout.fillWidth: true
hundredPercentLabelVisible: index === channelSliderRepeater.count -1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment