blob: 8dd2b8974c6b87e05fe4832e73be7b3de0287538 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>Form1</class>
<widget class="Dialog">
<property name="name">
<cstring>Form1</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>536</width>
<height>225</height>
</rect>
</property>
<property name="caption">
<string>StatusBar example</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
<string>@StatusBar2.setText(Welcome in this StatusBar demo...)</string>
<string></string>
</stringlist>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="StatusBar" row="2" column="0">
<property name="name">
<cstring>StatusBar2</cstring>
</property>
<property name="populationText">
<string>@ListBox1.selection selected.</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
</stringlist>
</property>
</widget>
<widget class="ListBox" row="0" column="0">
<item>
<property name="text">
<string>Some item</string>
</property>
</item>
<item>
<property name="text">
<string>Some other item</string>
</property>
</item>
<item>
<property name="text">
<string>Another Item</string>
</property>
</item>
<item>
<property name="text">
<string>One more Item</string>
</property>
</item>
<property name="name">
<cstring>ListBox1</cstring>
</property>
</widget>
<widget class="ExecButton" row="1" column="0">
<property name="name">
<cstring>ExecButton1</cstring>
</property>
<property name="text">
<string>Update status bar</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@StatusBar2.insertItem(This one was updated, 0)
@StatusBar2.insertItem(User: @exec(whoami), 1)
@StatusBar2.insertItem(@exec(date), 2)</string>
</stringlist>
</property>
</widget>
</grid>
</widget>
<connections>
<connection>
<sender>ListBox1</sender>
<signal>clicked(QListBoxItem*,const QPoint&)</signal>
<receiver>StatusBar2</receiver>
<slot>populate()</slot>
</connection>
</connections>
<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
|