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
+2 -1
View File
@@ -22,6 +22,7 @@ import QtQuick 2.2
import QtQuick.Dialogs 1.1
Item {
signal colorSelected (color color)
property color button_color
property string name
@@ -33,7 +34,7 @@ Item {
//This is a workaround to a Qt 5.2 bug.
onCurrentColorChanged: colorDialog.color = colorDialog.currentColor;
onAccepted: button_color = color;
onAccepted: colorSelected(color)
}
Rectangle{
anchors.fill: parent