Some fixes in the settings.

This commit is contained in:
Filippo Scognamiglio
2014-07-16 00:38:16 +02:00
parent 239a1e0a30
commit 1ca30accf2
6 changed files with 39 additions and 32 deletions
+3 -1
View File
@@ -23,6 +23,7 @@ import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
RowLayout {
property bool enabled: true
property alias name: check.text
property double value: (check.checked) ? _value : 0.0
property alias _value: slider.value
@@ -39,12 +40,13 @@ RowLayout {
id: check
implicitWidth: 150
Component.onCompleted: checked = (_value !== 0);
enabled: parent.enabled
}
Slider{
id: slider
stepSize: parent.stepSize
Layout.fillWidth: true
enabled: check.checked
enabled: check.checked && parent.enabled
}
Text{
id: textfield