Type.qml 1.21 KB
Newer Older
1
import Qt 4.6
2
import Bauhaus 1.0
3
4

GroupBox {
5
    id: type;
6
    finished: finishedNotify;
7
    caption: "type";
8

9
    layout: VerticalLayout {
10
        QWidget {
11
12
            layout: HorizontalLayout {
                Label {
13
                    text: "type";
14
15
                    windowTextColor: isBaseState ? "#000000" : "#FF0000";                 
                }                
16
17
18
19
20
                QLineEdit {
                    styleSheetFile: "typeLabel.css"
                    text: backendValues.className === undefined ? "" : backendValues.className.value;
                    readOnly :true;
                }
21
22
23
24
25
26
27
            }
        }
        QWidget {            
            layout: HorizontalLayout {
                Label {
                    text: "Id";
                }
28
29

                QLineEdit {
30
                    enabled: baseStateFlag
31
32
                    id: idLineEdit;
                    objectName: "idLineEdit";
33
34
35
36
37
                    readOnly: isBaseState != true;
                    text: backendValues.id === undefined ? "" : backendValues.id.value;
                    onEditingFinished: {
                        backendValues.id.value = text;
                    }
38
39
40
41
                }
            }
        }
    }
42
}