Type.qml 1.74 KB
Newer Older
1
2
3
import Qt 4.6

GroupBox {
4
5
6
    id: Type;
    finished: finishedNotify;
    caption: "Type";
7

8
9
10
11
12
13
14
    maximumHeight: 100;
    minimumWidth: 280;
    layout: QHBoxLayout {
        topMargin: 18;
        bottomMargin: 0;
        leftMargin: 60;
        rightMargin: 10;
15
16
17



18
        QWidget {
19
            layout: QVBoxLayout {
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
                topMargin: 6;
                bottomMargin: 0;
                leftMargin: 10;
                bottomMargin: 10;

                QLabel {
                    text: "Type";
                    windowTextColor: isBaseState ? "#000000" : "#FF0000";
                    alignment: "Qt::AlignRight | Qt::AlignVCenter"
                }

                QLabel {
                    font.bold: true;
                    text: "Id";
                    alignment: "Qt::AlignRight | Qt::AlignVCenter"
                }

37
38

            } //QVBoxLayout
39
40
        } //QWidget
        QWidget {
41
42

            layout: QVBoxLayout {
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
                topMargin: 6;
                bottomMargin: 0;
                leftMargin: 10;
                bottomMargin: 10;

                QLineEdit {
                    styleSheetFile: "typeLabel.css"
                    text: backendValues.className === undefined ? "" : backendValues.className.value;
                    readOnly :true;
                }

                QLineEdit {
                    id: IdLineEdit;
                    objectName: "IdLineEdit";
                    readOnly: isBaseState != true;
                    text: backendValues.id === undefined ? "" : backendValues.id.value;
                    onEditingFinished: {
                        backendValues.id.value = text;
                    }
                } //LineEdit

64
65

            } //QVBoxLayout
66
        } //QWidget
67
68


69
    } //QHBoxLayout
70
}