|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <ui version="4.0" stdsetdef="1"> |
|
3 <author></author> |
|
4 <comment></comment> |
|
5 <exportmacro></exportmacro> |
|
6 <class>Form1</class> |
|
7 <widget class="QWidget" name="Form1"> |
|
8 <property name="geometry"> |
|
9 <rect> |
|
10 <x>0</x> |
|
11 <y>0</y> |
|
12 <width>584</width> |
|
13 <height>331</height> |
|
14 </rect> |
|
15 </property> |
|
16 <property name="windowTitle"> |
|
17 <string>Form1</string> |
|
18 </property> |
|
19 <layout class="QVBoxLayout"> |
|
20 <item> |
|
21 <layout class="QGridLayout"> |
|
22 <item row="1" column="0"> |
|
23 <widget class="QLabel" name="textLabel3"> |
|
24 <property name="frameShape"> |
|
25 <enum>QFrame::NoFrame</enum> |
|
26 </property> |
|
27 <property name="frameShadow"> |
|
28 <enum>QFrame::Plain</enum> |
|
29 </property> |
|
30 <property name="text"> |
|
31 <string>Size</string> |
|
32 </property> |
|
33 <property name="wordWrap"> |
|
34 <bool>false</bool> |
|
35 </property> |
|
36 </widget> |
|
37 </item> |
|
38 <item row="1" column="2"> |
|
39 <widget class="QLabel" name="textLabel4"> |
|
40 <property name="text"> |
|
41 <string>Stretch</string> |
|
42 </property> |
|
43 <property name="wordWrap"> |
|
44 <bool>false</bool> |
|
45 </property> |
|
46 </widget> |
|
47 </item> |
|
48 <item row="0" column="0"> |
|
49 <widget class="QLabel" name="textLabel1"> |
|
50 <property name="text"> |
|
51 <string>Family</string> |
|
52 </property> |
|
53 <property name="wordWrap"> |
|
54 <bool>false</bool> |
|
55 </property> |
|
56 </widget> |
|
57 </item> |
|
58 <item row="0" column="3"> |
|
59 <widget class="QComboBox" name="styles"/> |
|
60 </item> |
|
61 <item row="0" column="1"> |
|
62 <widget class="QComboBox" name="families"/> |
|
63 </item> |
|
64 <item row="1" column="1"> |
|
65 <widget class="QSpinBox" name="sizebox"> |
|
66 <property name="suffix"> |
|
67 <string> pt</string> |
|
68 </property> |
|
69 <property name="specialValueText"> |
|
70 <string/> |
|
71 </property> |
|
72 <property name="maximum"> |
|
73 <number>1000</number> |
|
74 </property> |
|
75 <property name="minimum"> |
|
76 <number>10</number> |
|
77 </property> |
|
78 <property name="singleStep"> |
|
79 <number>10</number> |
|
80 </property> |
|
81 </widget> |
|
82 </item> |
|
83 <item row="0" column="2"> |
|
84 <widget class="QLabel" name="textLabel2"> |
|
85 <property name="text"> |
|
86 <string>Style</string> |
|
87 </property> |
|
88 <property name="wordWrap"> |
|
89 <bool>false</bool> |
|
90 </property> |
|
91 </widget> |
|
92 </item> |
|
93 <item row="1" column="3"> |
|
94 <widget class="QSpinBox" name="stretchbox"> |
|
95 <property name="suffix"> |
|
96 <string> %</string> |
|
97 </property> |
|
98 <property name="maximum"> |
|
99 <number>4000</number> |
|
100 </property> |
|
101 <property name="minimum"> |
|
102 <number>1</number> |
|
103 </property> |
|
104 <property name="value"> |
|
105 <number>100</number> |
|
106 </property> |
|
107 </widget> |
|
108 </item> |
|
109 </layout> |
|
110 </item> |
|
111 <item> |
|
112 <widget class="Line" name="line1"> |
|
113 <property name="frameShape"> |
|
114 <enum>QFrame::HLine</enum> |
|
115 </property> |
|
116 <property name="frameShadow"> |
|
117 <enum>QFrame::Sunken</enum> |
|
118 </property> |
|
119 </widget> |
|
120 </item> |
|
121 <item> |
|
122 <widget class="QLabel" name="viewer"> |
|
123 <property name="sizePolicy"> |
|
124 <sizepolicy> |
|
125 <hsizetype>3</hsizetype> |
|
126 <vsizetype>3</vsizetype> |
|
127 <horstretch>0</horstretch> |
|
128 <verstretch>0</verstretch> |
|
129 </sizepolicy> |
|
130 </property> |
|
131 <property name="maximumSize"> |
|
132 <size> |
|
133 <width>500</width> |
|
134 <height>32767</height> |
|
135 </size> |
|
136 </property> |
|
137 <property name="text"> |
|
138 <string>Andy, |
|
139 |
|
140 I'm sorry but that does not quite help me. I've already seen that the new functional equivalent is drawPrimitive witrh a PE_ArrowDown flag. The problem is that I do not see how to translate the parameters used in the old function to the QRect parameter that is required in the new function. Sinve there is no one-to-one correspondance in parameters I do not see how to move form the old function to the new. |
|
141 |
|
142 The purpose of this method is to pain t a combobox-like down arrow to the right of a QLineEdit widget that is contained in the class. How do I convert the old code to the new? |
|
143 |
|
144 Thanks! |
|
145 |
|
146 ...Jake</string> |
|
147 </property> |
|
148 <property name="alignment"> |
|
149 <set>Qt::AlignTop</set> |
|
150 </property> |
|
151 <property name="wordWrap"> |
|
152 <bool>true</bool> |
|
153 </property> |
|
154 </widget> |
|
155 </item> |
|
156 </layout> |
|
157 </widget> |
|
158 <layoutdefault spacing="6" margin="11"/> |
|
159 <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> |
|
160 <tabstops> |
|
161 <tabstop>families</tabstop> |
|
162 <tabstop>styles</tabstop> |
|
163 <tabstop>sizebox</tabstop> |
|
164 <tabstop>stretchbox</tabstop> |
|
165 </tabstops> |
|
166 <connections> |
|
167 <connection> |
|
168 <sender>families</sender> |
|
169 <signal>activated(QString)</signal> |
|
170 <receiver>Form1</receiver> |
|
171 <slot>changeFamily(QString)</slot> |
|
172 </connection> |
|
173 <connection> |
|
174 <sender>sizebox</sender> |
|
175 <signal>valueChanged(int)</signal> |
|
176 <receiver>Form1</receiver> |
|
177 <slot>changeSize(int)</slot> |
|
178 </connection> |
|
179 <connection> |
|
180 <sender>stretchbox</sender> |
|
181 <signal>valueChanged(int)</signal> |
|
182 <receiver>Form1</receiver> |
|
183 <slot>changeStretch(int)</slot> |
|
184 </connection> |
|
185 </connections> |
|
186 </ui> |