Skip to content

Commit 048421a

Browse files
author
mhugent
committed
Patch from Borys to fix resizing of the min-max combo boxes
git-svn-id: http://svn.osgeo.org/qgis/trunk@11783 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent cb7709c commit 048421a

1 file changed

Lines changed: 88 additions & 74 deletions

File tree

‎src/ui/qgscomposermapwidgetbase.ui‎

Lines changed: 88 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -120,81 +120,95 @@
120120
<property name="title">
121121
<string>Map extent</string>
122122
</property>
123-
<layout class="QGridLayout">
124-
<item row="0" column="0">
125-
<widget class="QLabel" name="mXMinLabel">
126-
<property name="enabled">
127-
<bool>true</bool>
128-
</property>
129-
<property name="text">
130-
<string>X min</string>
131-
</property>
132-
<property name="buddy">
133-
<cstring>mXMinLineEdit</cstring>
134-
</property>
135-
</widget>
136-
</item>
137-
<item row="0" column="1">
138-
<widget class="QLineEdit" name="mXMinLineEdit"/>
139-
</item>
140-
<item row="0" column="2">
141-
<widget class="QLabel" name="mXMaxLabel">
142-
<property name="text">
143-
<string>X max</string>
144-
</property>
145-
<property name="buddy">
146-
<cstring>mXMaxLineEdit</cstring>
147-
</property>
148-
</widget>
149-
</item>
150-
<item row="0" column="3" colspan="2">
151-
<widget class="QLineEdit" name="mXMaxLineEdit"/>
152-
</item>
153-
<item row="1" column="0">
154-
<widget class="QLabel" name="mYMinLabel">
155-
<property name="text">
156-
<string>Y min</string>
157-
</property>
158-
<property name="buddy">
159-
<cstring>mYMinLineEdit</cstring>
160-
</property>
161-
</widget>
162-
</item>
163-
<item row="1" column="1">
164-
<widget class="QLineEdit" name="mYMinLineEdit"/>
165-
</item>
166-
<item row="1" column="2">
167-
<widget class="QLabel" name="mYMaxLabel">
168-
<property name="text">
169-
<string>Y max</string>
170-
</property>
171-
<property name="buddy">
172-
<cstring>mYMaxLineEdit</cstring>
173-
</property>
174-
</widget>
175-
</item>
176-
<item row="1" column="3" colspan="2">
177-
<widget class="QLineEdit" name="mYMaxLineEdit"/>
178-
</item>
179-
<item row="2" column="0" colspan="4">
180-
<spacer>
181-
<property name="orientation">
182-
<enum>Qt::Horizontal</enum>
183-
</property>
184-
<property name="sizeHint" stdset="0">
185-
<size>
186-
<width>311</width>
187-
<height>20</height>
188-
</size>
189-
</property>
190-
</spacer>
123+
<layout class="QVBoxLayout" name="verticalLayout">
124+
<item>
125+
<layout class="QGridLayout" name="gridLayout_4">
126+
<item row="0" column="1">
127+
<widget class="QLineEdit" name="mXMinLineEdit"/>
128+
</item>
129+
<item row="0" column="0">
130+
<widget class="QLabel" name="mXMinLabel">
131+
<property name="enabled">
132+
<bool>true</bool>
133+
</property>
134+
<property name="text">
135+
<string>X min</string>
136+
</property>
137+
<property name="buddy">
138+
<cstring>mXMinLineEdit</cstring>
139+
</property>
140+
</widget>
141+
</item>
142+
<item row="1" column="1">
143+
<widget class="QLineEdit" name="mYMinLineEdit"/>
144+
</item>
145+
<item row="1" column="0">
146+
<widget class="QLabel" name="mYMinLabel">
147+
<property name="text">
148+
<string>Y min</string>
149+
</property>
150+
<property name="buddy">
151+
<cstring>mYMinLineEdit</cstring>
152+
</property>
153+
</widget>
154+
</item>
155+
<item row="0" column="3">
156+
<widget class="QLineEdit" name="mXMaxLineEdit"/>
157+
</item>
158+
<item row="1" column="3">
159+
<widget class="QLineEdit" name="mYMaxLineEdit"/>
160+
</item>
161+
<item row="0" column="2">
162+
<widget class="QLabel" name="mXMaxLabel">
163+
<property name="text">
164+
<string>X max</string>
165+
</property>
166+
<property name="buddy">
167+
<cstring>mXMaxLineEdit</cstring>
168+
</property>
169+
</widget>
170+
</item>
171+
<item row="1" column="2">
172+
<widget class="QLabel" name="mYMaxLabel">
173+
<property name="text">
174+
<string>Y max</string>
175+
</property>
176+
<property name="buddy">
177+
<cstring>mYMaxLineEdit</cstring>
178+
</property>
179+
</widget>
180+
</item>
181+
</layout>
191182
</item>
192-
<item row="2" column="4">
193-
<widget class="QPushButton" name="mSetToMapCanvasExtentButton">
194-
<property name="text">
195-
<string>Set to map canvas extent</string>
196-
</property>
197-
</widget>
183+
<item>
184+
<layout class="QHBoxLayout" name="horizontalLayout_5">
185+
<item>
186+
<spacer>
187+
<property name="orientation">
188+
<enum>Qt::Horizontal</enum>
189+
</property>
190+
<property name="sizeHint" stdset="0">
191+
<size>
192+
<width>311</width>
193+
<height>20</height>
194+
</size>
195+
</property>
196+
</spacer>
197+
</item>
198+
<item>
199+
<widget class="QPushButton" name="mSetToMapCanvasExtentButton">
200+
<property name="sizePolicy">
201+
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
202+
<horstretch>0</horstretch>
203+
<verstretch>0</verstretch>
204+
</sizepolicy>
205+
</property>
206+
<property name="text">
207+
<string>Set to map canvas extent</string>
208+
</property>
209+
</widget>
210+
</item>
211+
</layout>
198212
</item>
199213
</layout>
200214
</widget>

0 commit comments

Comments
 (0)