Fix: update wallpaper example Autumn's config.qml to QtQuick.Controls

This commit is contained in:
Friedrich W. H. Kossebau 2016-08-03 23:01:07 +02:00
parent 333bdd7fb3
commit 3ec4f26e79

View File

@ -17,20 +17,28 @@
*/ */
import QtQuick 2.0 import QtQuick 2.0
import org.kde.plasma.components 2.0 as PlasmaComponents
import QtQuick.Controls 1.0 as QtControls
// for "units"
import org.kde.plasma.core 2.0 as PlasmaCore
Column { Column {
id: root id: root
property alias cfg_Speed: slider.value property alias cfg_Speed: slider.value
Row { Row {
PlasmaComponents.Label { spacing: units.largeSpacing / 2
QtControls.Label {
width: formAlignment - units.largeSpacing
horizontalAlignment: Text.AlignRight
text: "Speed:" text: "Speed:"
} }
PlasmaComponents.Slider { QtControls.Slider {
id: slider id: slider
minimumValue: 20 minimumValue: 20
maximumValue: 150 maximumValue: 150
} }
} }
} }