Skip to content

Commit 8cf88d4

Browse files
committed
Implemented resize of log window
1 parent 2624a75 commit 8cf88d4

File tree

1 file changed

+171
-142
lines changed

1 file changed

+171
-142
lines changed

qt/main_window.ui

Lines changed: 171 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<x>0</x>
88
<y>0</y>
99
<width>580</width>
10-
<height>538</height>
10+
<height>570</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
@@ -17,26 +17,171 @@
1717
<property name="autoFillBackground">
1818
<bool>false</bool>
1919
</property>
20-
<layout class="QVBoxLayout" name="verticalLayout_2">
21-
<item>
22-
<layout class="QVBoxLayout" name="verticalLayout">
23-
<item>
24-
<layout class="QGridLayout" name="gridLayout_3">
25-
<item row="2" column="1">
26-
<widget class="QComboBox" name="chipSelectComboBox">
27-
<property name="enabled">
28-
<bool>false</bool>
29-
</property>
20+
<layout class="QGridLayout" name="gridLayout_4">
21+
<item row="1" column="0">
22+
<layout class="QGridLayout" name="gridLayout">
23+
<property name="sizeConstraint">
24+
<enum>QLayout::SetDefaultConstraint</enum>
25+
</property>
26+
<item row="0" column="2">
27+
<spacer name="horizontalSpacer">
28+
<property name="orientation">
29+
<enum>Qt::Horizontal</enum>
30+
</property>
31+
<property name="sizeHint" stdset="0">
32+
<size>
33+
<width>681</width>
34+
<height>17</height>
35+
</size>
36+
</property>
37+
</spacer>
38+
</item>
39+
<item row="0" column="0">
40+
<widget class="QLabel" name="deviceLabel">
41+
<property name="sizePolicy">
42+
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
43+
<horstretch>0</horstretch>
44+
<verstretch>0</verstretch>
45+
</sizepolicy>
46+
</property>
47+
<property name="minimumSize">
48+
<size>
49+
<width>70</width>
50+
<height>0</height>
51+
</size>
52+
</property>
53+
<property name="text">
54+
<string>Chip ID:</string>
55+
</property>
56+
</widget>
57+
</item>
58+
<item row="0" column="1">
59+
<widget class="QLabel" name="deviceValueLabel">
60+
<property name="sizePolicy">
61+
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
62+
<horstretch>0</horstretch>
63+
<verstretch>0</verstretch>
64+
</sizepolicy>
65+
</property>
66+
<property name="minimumSize">
67+
<size>
68+
<width>150</width>
69+
<height>0</height>
70+
</size>
71+
</property>
72+
<property name="text">
73+
<string/>
74+
</property>
75+
</widget>
76+
</item>
77+
</layout>
78+
</item>
79+
<item row="0" column="0">
80+
<layout class="QGridLayout" name="gridLayout_3">
81+
<item row="2" column="1">
82+
<widget class="QComboBox" name="chipSelectComboBox">
83+
<property name="enabled">
84+
<bool>false</bool>
85+
</property>
86+
<property name="sizePolicy">
87+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
88+
<horstretch>0</horstretch>
89+
<verstretch>0</verstretch>
90+
</sizepolicy>
91+
</property>
92+
<property name="minimumSize">
93+
<size>
94+
<width>150</width>
95+
<height>0</height>
96+
</size>
97+
</property>
98+
<property name="maximumSize">
99+
<size>
100+
<width>16777215</width>
101+
<height>16777215</height>
102+
</size>
103+
</property>
104+
<property name="currentText">
105+
<string/>
106+
</property>
107+
</widget>
108+
</item>
109+
<item row="2" column="0">
110+
<widget class="QLabel" name="label_2">
111+
<property name="maximumSize">
112+
<size>
113+
<width>70</width>
114+
<height>16777215</height>
115+
</size>
116+
</property>
117+
<property name="text">
118+
<string>Select chip:</string>
119+
</property>
120+
</widget>
121+
</item>
122+
<item row="2" column="2">
123+
<spacer name="horizontalSpacer_2">
124+
<property name="orientation">
125+
<enum>Qt::Horizontal</enum>
126+
</property>
127+
<property name="sizeHint" stdset="0">
128+
<size>
129+
<width>40</width>
130+
<height>20</height>
131+
</size>
132+
</property>
133+
</spacer>
134+
</item>
135+
</layout>
136+
</item>
137+
<item row="2" column="0">
138+
<widget class="QSplitter" name="splitter">
139+
<property name="orientation">
140+
<enum>Qt::Vertical</enum>
141+
</property>
142+
<widget class="QTableView" name="bufferTableView">
143+
<property name="sizePolicy">
144+
<sizepolicy hsizetype="Expanding" vsizetype="Maximum">
145+
<horstretch>0</horstretch>
146+
<verstretch>1</verstretch>
147+
</sizepolicy>
148+
</property>
149+
<property name="minimumSize">
150+
<size>
151+
<width>560</width>
152+
<height>300</height>
153+
</size>
154+
</property>
155+
<property name="font">
156+
<font>
157+
<family>Monospace</family>
158+
<pointsize>8</pointsize>
159+
</font>
160+
</property>
161+
<attribute name="horizontalHeaderStretchLastSection">
162+
<bool>true</bool>
163+
</attribute>
164+
<attribute name="verticalHeaderStretchLastSection">
165+
<bool>false</bool>
166+
</attribute>
167+
</widget>
168+
<widget class="QWidget" name="">
169+
<layout class="QGridLayout" name="gridLayout_2" rowstretch="0,0" columnstretch="0" rowminimumheight="0,0" columnminimumwidth="0">
170+
<property name="sizeConstraint">
171+
<enum>QLayout::SetDefaultConstraint</enum>
172+
</property>
173+
<item row="1" column="0">
174+
<widget class="QTextEdit" name="logTextEdit">
30175
<property name="sizePolicy">
31-
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
176+
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
32177
<horstretch>0</horstretch>
33178
<verstretch>0</verstretch>
34179
</sizepolicy>
35180
</property>
36181
<property name="minimumSize">
37182
<size>
38-
<width>150</width>
39-
<height>0</height>
183+
<width>0</width>
184+
<height>100</height>
40185
</size>
41186
</property>
42187
<property name="maximumSize">
@@ -45,155 +190,39 @@
45190
<height>16777215</height>
46191
</size>
47192
</property>
48-
<property name="currentText">
49-
<string/>
50-
</property>
51-
</widget>
52-
</item>
53-
<item row="2" column="0">
54-
<widget class="QLabel" name="label_2">
55-
<property name="maximumSize">
193+
<property name="sizeIncrement">
56194
<size>
57-
<width>70</width>
58-
<height>16777215</height>
195+
<width>0</width>
196+
<height>0</height>
59197
</size>
60198
</property>
61-
<property name="text">
62-
<string>Select chip:</string>
63-
</property>
64-
</widget>
65-
</item>
66-
<item row="2" column="2">
67-
<spacer name="horizontalSpacer_2">
68-
<property name="orientation">
69-
<enum>Qt::Horizontal</enum>
70-
</property>
71-
<property name="sizeHint" stdset="0">
199+
<property name="baseSize">
72200
<size>
73-
<width>40</width>
74-
<height>20</height>
75-
</size>
76-
</property>
77-
</spacer>
78-
</item>
79-
</layout>
80-
</item>
81-
<item>
82-
<layout class="QGridLayout" name="gridLayout">
83-
<item row="0" column="1">
84-
<widget class="QLabel" name="deviceValueLabel">
85-
<property name="sizePolicy">
86-
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
87-
<horstretch>0</horstretch>
88-
<verstretch>0</verstretch>
89-
</sizepolicy>
90-
</property>
91-
<property name="minimumSize">
92-
<size>
93-
<width>150</width>
201+
<width>0</width>
94202
<height>0</height>
95203
</size>
96204
</property>
97-
<property name="text">
98-
<string/>
205+
<property name="textInteractionFlags">
206+
<set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
99207
</property>
100208
</widget>
101209
</item>
102210
<item row="0" column="0">
103-
<widget class="QLabel" name="deviceLabel">
211+
<widget class="QLabel" name="label">
104212
<property name="sizePolicy">
105-
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
213+
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
106214
<horstretch>0</horstretch>
107215
<verstretch>0</verstretch>
108216
</sizepolicy>
109217
</property>
110-
<property name="minimumSize">
111-
<size>
112-
<width>70</width>
113-
<height>0</height>
114-
</size>
115-
</property>
116218
<property name="text">
117-
<string>Chip ID:</string>
219+
<string>Log:</string>
118220
</property>
119221
</widget>
120222
</item>
121-
<item row="0" column="2">
122-
<spacer name="horizontalSpacer">
123-
<property name="orientation">
124-
<enum>Qt::Horizontal</enum>
125-
</property>
126-
<property name="sizeHint" stdset="0">
127-
<size>
128-
<width>681</width>
129-
<height>17</height>
130-
</size>
131-
</property>
132-
</spacer>
133-
</item>
134223
</layout>
135-
</item>
136-
<item>
137-
<widget class="QTableView" name="bufferTableView">
138-
<property name="minimumSize">
139-
<size>
140-
<width>560</width>
141-
<height>300</height>
142-
</size>
143-
</property>
144-
<property name="font">
145-
<font>
146-
<family>Monospace</family>
147-
<pointsize>8</pointsize>
148-
</font>
149-
</property>
150-
<attribute name="horizontalHeaderStretchLastSection">
151-
<bool>true</bool>
152-
</attribute>
153-
<attribute name="verticalHeaderStretchLastSection">
154-
<bool>false</bool>
155-
</attribute>
156-
</widget>
157-
</item>
158-
<item>
159-
<widget class="QLabel" name="label">
160-
<property name="sizePolicy">
161-
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
162-
<horstretch>0</horstretch>
163-
<verstretch>0</verstretch>
164-
</sizepolicy>
165-
</property>
166-
<property name="text">
167-
<string>Log:</string>
168-
</property>
169-
</widget>
170-
</item>
171-
<item>
172-
<widget class="QTextEdit" name="logTextEdit">
173-
<property name="sizePolicy">
174-
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
175-
<horstretch>0</horstretch>
176-
<verstretch>0</verstretch>
177-
</sizepolicy>
178-
</property>
179-
<property name="minimumSize">
180-
<size>
181-
<width>0</width>
182-
<height>70</height>
183-
</size>
184-
</property>
185-
<property name="maximumSize">
186-
<size>
187-
<width>16777215</width>
188-
<height>70</height>
189-
</size>
190-
</property>
191-
<property name="textInteractionFlags">
192-
<set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
193-
</property>
194-
</widget>
195-
</item>
196-
</layout>
224+
</widget>
225+
</widget>
197226
</item>
198227
</layout>
199228
</widget>

0 commit comments

Comments
 (0)