summaryrefslogtreecommitdiffstats
path: root/basicsuite/mediaplayer/ParameterPanel.qml
diff options
context:
space:
mode:
authorJuho Annunen <juho.annunen@qt.io>2018-08-21 14:44:48 +0300
committerTeemu Holappa <teemu.holappa@qt.io>2018-08-23 06:55:15 +0000
commit3594ea2a2dec8a74c2e8baf307c13671ebbdf18c (patch)
treea83b1cee09a1050ed2c11854dd3c778ceebea229 /basicsuite/mediaplayer/ParameterPanel.qml
parente81384c45e5c0b90e07057abd2a8788272d14c0f (diff)
Fix scaling, video path & focusing issues on mediaplayer demo
Task-number: QTBUG-62791 Change-Id: I8ea9bcc27fcf0b2d4fb9f7b8ada165f7a5a5d7c8 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
Diffstat (limited to 'basicsuite/mediaplayer/ParameterPanel.qml')
-rw-r--r--basicsuite/mediaplayer/ParameterPanel.qml14
1 files changed, 7 insertions, 7 deletions
diff --git a/basicsuite/mediaplayer/ParameterPanel.qml b/basicsuite/mediaplayer/ParameterPanel.qml
index 81bba63..b67381a 100644
--- a/basicsuite/mediaplayer/ParameterPanel.qml
+++ b/basicsuite/mediaplayer/ParameterPanel.qml
@@ -51,11 +51,10 @@ import QtQuick 2.0
Rectangle {
id: root
- height: view.model.count * sliderHeight
color: _backgroundColor
property color lineColor: "black"
property real spacing: 10
- property real sliderHeight: 50
+ property real sliderHeight: height * 0.4
property bool isMouseAbove: mouseAboveMonitor.containsMouse
property ListModel model: ListModel { }
@@ -82,15 +81,16 @@ Rectangle {
anchors {
top: parent.top
bottom: parent.bottom
- leftMargin: 15
+ leftMargin: itemMargin
left: parent.left
}
horizontalAlignment: Text.AlignRight
verticalAlignment: Text.AlignVCenter
- font.pixelSize: 20
+ font.pixelSize: defaultFontSize
font.capitalization: Font.Capitalize
font.family: appFont
- width: 90
+ width: root.width * 0.2
+ fontSizeMode: Text.Fit
}
PlayerSlider {
@@ -98,9 +98,9 @@ Rectangle {
verticalCenter: text.verticalCenter
verticalCenterOffset: 3
left: text.right
- leftMargin: 20
+ leftMargin: itemMargin
right: parent.right
- rightMargin: 20
+ rightMargin: itemMargin
}
value: model.value
onValueChanged: view.model.setProperty(index, "value", value)