Reenabled profiles. Fixes in the settings window.

This commit is contained in:
Filippo Scognamiglio
2014-03-31 22:23:48 +02:00
parent 8611f815e7
commit 984c4aaa23
6 changed files with 114 additions and 27 deletions
+14 -10
View File
@@ -50,9 +50,8 @@ ApplicationWindow {
ComboBox{
anchors.fill: parent
model: shadersettings.profiles_list
onCurrentIndexChanged: {
shadersettings.loadProfile(shadersettings.profiles_list.get(currentIndex).obj_name);
}
onCurrentIndexChanged: shadersettings.profiles_index = currentIndex
currentIndex: shadersettings.profiles_index
}
}
@@ -87,7 +86,7 @@ ApplicationWindow {
Layout.fillWidth: true
Layout.columnSpan: 2
onButton_colorChanged: shadersettings._font_color = button_color;
Component.onCompleted: button_color = shadersettings._font_color;
button_color: shadersettings._font_color;
}
}
}
@@ -113,24 +112,29 @@ ApplicationWindow {
Layout.columnSpan: 2
onButton_colorChanged: shadersettings._background_color= button_color
Component.onCompleted: button_color = shadersettings._background_color;
button_color: shadersettings._background_color;
}
}
}
GroupBox{
title: qsTr("Background")
Layout.fillWidth: true
Layout.fillHeight:true
Layout.columnSpan: 2
anchors.left: parent.left
anchors.right: parent.right
ColumnLayout{
SettingComponent{
Layout.columnSpan: 2
anchors.left: parent.left
anchors.right: parent.right
SimpleSlider{
name: "Contrast"
onValueChanged: shadersettings.contrast = value
_value: shadersettings.contrast
value: shadersettings.contrast
}
SettingComponent{
SimpleSlider{
name: "Brightness"
onValueChanged: shadersettings.brightness = value
_value: shadersettings.brightness
value: shadersettings.brightness
}
}
}