StandardTextColorGroupBox.qml 1.23 KB
Newer Older
1
import Qt 4.7
2 3 4 5 6
import Bauhaus 1.0

GroupBox {
    id: standardTextColorGroupBox

7 8 9 10 11
    property bool showStyleColor: false
    property bool showSelectionColor: false
    property bool showSelectedTextColor: false

    caption: qsTr("Color")
12 13 14

    layout: VerticalLayout {
        ColorGroupBox {
15
            caption: qsTr("Text")
16 17 18 19 20 21
            finished: finishedNotify

            backendColor: backendValues.color
        }
        
        ColorGroupBox {
22 23
            caption: qsTr("Style")
            visible: showStyleColor
24 25
            finished: finishedNotify

26
            backendColor: (backendValues.styleColor === undefined) ? dummyBackendValue : backendValues.styleColor
27
        }
28 29 30 31

        ColorGroupBox {
            caption: qsTr("Selection")
            visible: showSelectionColor
32 33
            finished: finishedNotify

34
            backendColor: (backendValues.selectionColor === undefined) ? dummyBackendValue : backendValues.selectionColor
35 36 37
        }
        
        ColorGroupBox {
38 39
            visible: showSelectedTextColor
            caption: qsTr("Selected")
40 41 42

            finished: finishedNotify

43
            backendColor: (backendValues.selectedTextColor === undefined) ? dummyBackendValue : backendValues.selectedTextColor
44 45 46 47 48
        }

    }

}