StandardTextGroupBox.qml 1.22 KB
Newer Older
1
import Qt 4.7
2 3 4
import Bauhaus 1.0

GroupBox {
5
    id: standardTextGroupBox
6

7
    caption: qsTr("Text")
8

9 10
    property bool showIsWrapping: false
    property bool showVerticalAlignment: false
11 12 13 14 15 16

    layout: VerticalLayout {
        QWidget {
            layout: HorizontalLayout {

                Label {
17
                    text: qsTr("Text")
18 19 20 21
                }

                LineEdit {
                    backendValue: backendValues.text
22
                    baseStateFlag: isBaseState;
23
                }
24 25 26
            }
        }
        QWidget {
27
            visible: showIsWrapping
28 29 30 31
            layout: HorizontalLayout {
                Label {
                    text: ""
                }
32 33
                CheckBox {
                    baseStateFlag: isBaseState;
34
                    text: qsTr("Is Wrapping")
35 36 37 38 39
                    checkable: true;
                    backendValue: backendValues.wrap;
                }
            }
        }
40

41 42 43 44
        QWidget {
            layout: HorizontalLayout {

                Label {
45
                    text: qsTr("Alignment")
46
                }
47
                AlignmentHorizontalButtons {}
48
                AlignmentVerticalButtons { visible: showVerticalAlignment }
49
            }
50
        }       
51 52
    }
}