Browse Source

qml: fix expanding spacer widget

pull/128/head
Fatih Uzunoglu 5 years ago
committed by Jean-Baptiste Kempf
parent
commit
9523cf69fe
  1. 22
      modules/gui/qt/player/qml/ControlButtons.qml

22
modules/gui/qt/player/qml/ControlButtons.qml

@ -495,33 +495,37 @@ Item{
}
}
Component{
Component {
id: extendiblespacerDelegate
Item{
Item {
id: extendedspacer
enabled: false
implicitWidth: VLCStyle.widthExtendedSpacer
implicitWidth: paintOnly ? VLCStyle.widthExtendedSpacer : extraWidth
implicitHeight: VLCStyle.icon_normal
property bool paintOnly: false
property alias spacetextExt: spacetext
readonly property real minimumWidth: 0
property real extraWidth: 0
Label {
id: spacetext
anchors.centerIn: parent
text: VLCIcons.space
color: VLCStyle.colors.buttonText
visible: paintOnly
anchors.centerIn: parent
font.pixelSize: VLCIcons.pixelSize(VLCStyle.icon_medium)
font.family: VLCIcons.fontFamily
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
}
Component.onCompleted: {
parent.Layout.fillWidth=true
}
}
}

Loading…
Cancel
Save