2022-04-23 14:32:36 +02:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls.Material 2.0 as QQCM
|
|
|
|
import QtQuick.Layouts
|
|
|
|
import QtQuick.Controls as QQC
|
2022-05-05 13:02:54 +02:00
|
|
|
import ScreenPlayApp
|
|
|
|
import ScreenPlay
|
2022-04-23 14:32:36 +02:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property string headline: "dummyHeandline"
|
2022-04-30 13:22:17 +02:00
|
|
|
property string iconSource: "qrc:/qml/ScreenPlayApp/assets/icons/icon_volume.svg"
|
2022-04-23 14:32:36 +02:00
|
|
|
property alias slider: slider
|
|
|
|
|
|
|
|
height: 70
|
|
|
|
|
|
|
|
Text {
|
|
|
|
id: txtHeadline
|
|
|
|
|
|
|
|
text: headline
|
|
|
|
height: 20
|
|
|
|
font.pointSize: 14
|
2022-04-30 12:07:54 +02:00
|
|
|
font.family: App.settings.font
|
2022-04-23 14:32:36 +02:00
|
|
|
color: QQCM.Material.primaryTextColor
|
|
|
|
|
|
|
|
anchors {
|
|
|
|
top: parent.top
|
|
|
|
right: parent.right
|
|
|
|
left: parent.left
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
2022-05-05 13:02:54 +02:00
|
|
|
spacing: 15
|
2022-04-23 14:32:36 +02:00
|
|
|
|
|
|
|
anchors {
|
|
|
|
top: txtHeadline.bottom
|
|
|
|
right: parent.right
|
|
|
|
bottom: parent.bottom
|
|
|
|
left: parent.left
|
|
|
|
}
|
|
|
|
|
|
|
|
Image {
|
|
|
|
id: imgIcon
|
|
|
|
|
|
|
|
width: 20
|
|
|
|
height: 20
|
|
|
|
source: iconSource
|
|
|
|
sourceSize: Qt.size(20, 20)
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
}
|
|
|
|
|
|
|
|
QQC.Slider {
|
|
|
|
id: slider
|
|
|
|
|
|
|
|
stepSize: 0.01
|
|
|
|
from: 0
|
|
|
|
value: 1
|
|
|
|
to: 1
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
}
|
|
|
|
|
|
|
|
Text {
|
|
|
|
id: txtValue
|
|
|
|
|
|
|
|
color: QQCM.Material.secondaryTextColor
|
|
|
|
text: Math.round(slider.value * 100) / 100
|
2022-05-05 13:02:54 +02:00
|
|
|
|
|
|
|
Layout.preferredWidth: 20
|
|
|
|
Layout.preferredHeight: 20
|
2022-04-23 14:32:36 +02:00
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
font.pointSize: 12
|
|
|
|
font.italic: true
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|