Skip to content

Commit 827be3f

Browse files
author
jef
committed
fix spatialquery combobox resizing issue
git-svn-id: http://svn.osgeo.org/qgis/trunk@13381 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent b40868c commit 827be3f

File tree

2 files changed

+131
-115
lines changed

2 files changed

+131
-115
lines changed

src/plugins/spatialquery/qgsspatialquerydialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ void QgsSpatialQueryDialog::connectAll()
287287
this, SLOT( signal_qgis_layerWasAdded( QgsMapLayer* ) ) ) ;
288288
connect( QgsMapLayerRegistry::instance(), SIGNAL( layerWillBeRemoved( QString ) ),
289289
this, SLOT( signal_qgis_layerWillBeRemoved( QString ) ) );
290-
connect( showLogProcessingCheckBox, SIGNAL( clicked() ),
290+
connect( showLogProcessingCheckBox, SIGNAL( clicked( bool ) ),
291291
this, SLOT( on_showLogProcessingCheckBox_clicked( bool ) ) );
292292

293293
} // QgsSpatialQueryDialog::connectAll()

src/plugins/spatialquery/qgsspatialquerydialogbase.ui

Lines changed: 130 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -35,120 +35,6 @@
3535
<locale language="English" country="UnitedKingdom"/>
3636
</property>
3737
<layout class="QGridLayout" name="gridLayout_3">
38-
<item row="8" column="0" colspan="2">
39-
<widget class="QDialogButtonBox" name="buttonBox">
40-
<property name="maximumSize">
41-
<size>
42-
<width>16777215</width>
43-
<height>16777215</height>
44-
</size>
45-
</property>
46-
<property name="contextMenuPolicy">
47-
<enum>Qt::DefaultContextMenu</enum>
48-
</property>
49-
<property name="toolTip">
50-
<string>Run query or close the window</string>
51-
</property>
52-
<property name="standardButtons">
53-
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Close|QDialogButtonBox::Ok</set>
54-
</property>
55-
</widget>
56-
</item>
57-
<item row="6" column="0" colspan="2">
58-
<widget class="QProgressBar" name="progressBarStatus">
59-
<property name="value">
60-
<number>0</number>
61-
</property>
62-
<property name="alignment">
63-
<set>Qt::AlignCenter</set>
64-
</property>
65-
<property name="textVisible">
66-
<bool>false</bool>
67-
</property>
68-
</widget>
69-
</item>
70-
<item row="7" column="0">
71-
<widget class="QGroupBox" name="grpResults">
72-
<property name="sizePolicy">
73-
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
74-
<horstretch>0</horstretch>
75-
<verstretch>0</verstretch>
76-
</sizepolicy>
77-
</property>
78-
<property name="title">
79-
<string>Results (click to highlight on map)</string>
80-
</property>
81-
<layout class="QVBoxLayout" name="verticalLayout">
82-
<item>
83-
<widget class="QListWidget" name="selectedFeatureListWidget">
84-
<property name="sizePolicy">
85-
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
86-
<horstretch>0</horstretch>
87-
<verstretch>0</verstretch>
88-
</sizepolicy>
89-
</property>
90-
<property name="minimumSize">
91-
<size>
92-
<width>136</width>
93-
<height>135</height>
94-
</size>
95-
</property>
96-
<property name="maximumSize">
97-
<size>
98-
<width>16777215</width>
99-
<height>16777215</height>
100-
</size>
101-
</property>
102-
<property name="toolTip">
103-
<string>Select item to identify geometry of feature</string>
104-
</property>
105-
</widget>
106-
</item>
107-
<item>
108-
<widget class="QCheckBox" name="showLogProcessingCheckBox">
109-
<property name="toolTip">
110-
<string>Check to show log processing of query</string>
111-
</property>
112-
<property name="text">
113-
<string>Show log messages</string>
114-
</property>
115-
</widget>
116-
</item>
117-
<item>
118-
<widget class="QTextEdit" name="textEditStatus">
119-
<property name="enabled">
120-
<bool>true</bool>
121-
</property>
122-
<property name="textInteractionFlags">
123-
<set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
124-
</property>
125-
</widget>
126-
</item>
127-
<item>
128-
<widget class="QLabel" name="countSelectedFeats">
129-
<property name="minimumSize">
130-
<size>
131-
<width>18</width>
132-
<height>20</height>
133-
</size>
134-
</property>
135-
<property name="maximumSize">
136-
<size>
137-
<width>16777215</width>
138-
<height>30</height>
139-
</size>
140-
</property>
141-
<property name="toolTip">
142-
<string>Total of features from query</string>
143-
</property>
144-
<property name="text">
145-
<string> Total</string>
146-
</property>
147-
</widget>
148-
</item>
149-
</layout>
150-
</widget>
151-
</item>
15238
<item row="0" column="0">
15339
<widget class="QGroupBox" name="grpTargetGroupBox">
15440
<property name="toolTip">
@@ -259,6 +145,25 @@ p, li { white-space: pre-wrap; }
259145
</layout>
260146
</widget>
261147
</item>
148+
<item row="10" column="0" colspan="2">
149+
<widget class="QDialogButtonBox" name="buttonBox">
150+
<property name="maximumSize">
151+
<size>
152+
<width>16777215</width>
153+
<height>16777215</height>
154+
</size>
155+
</property>
156+
<property name="contextMenuPolicy">
157+
<enum>Qt::DefaultContextMenu</enum>
158+
</property>
159+
<property name="toolTip">
160+
<string>Run query or close the window</string>
161+
</property>
162+
<property name="standardButtons">
163+
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Close|QDialogButtonBox::Ok</set>
164+
</property>
165+
</widget>
166+
</item>
262167
<item row="5" column="0">
263168
<widget class="QGroupBox" name="grpOperationGroupBox">
264169
<property name="toolTip">
@@ -296,6 +201,117 @@ p, li { white-space: pre-wrap; }
296201
</layout>
297202
</widget>
298203
</item>
204+
<item row="9" column="0">
205+
<widget class="QProgressBar" name="progressBarStatus">
206+
<property name="value">
207+
<number>0</number>
208+
</property>
209+
<property name="alignment">
210+
<set>Qt::AlignCenter</set>
211+
</property>
212+
<property name="textVisible">
213+
<bool>false</bool>
214+
</property>
215+
</widget>
216+
</item>
217+
<item row="6" column="0">
218+
<widget class="QGroupBox" name="grpResults">
219+
<property name="enabled">
220+
<bool>true</bool>
221+
</property>
222+
<property name="sizePolicy">
223+
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
224+
<horstretch>0</horstretch>
225+
<verstretch>0</verstretch>
226+
</sizepolicy>
227+
</property>
228+
<property name="title">
229+
<string>Results (click to highlight on map)</string>
230+
</property>
231+
<layout class="QVBoxLayout" name="verticalLayout">
232+
<item>
233+
<widget class="QListWidget" name="selectedFeatureListWidget">
234+
<property name="sizePolicy">
235+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
236+
<horstretch>0</horstretch>
237+
<verstretch>0</verstretch>
238+
</sizepolicy>
239+
</property>
240+
<property name="minimumSize">
241+
<size>
242+
<width>136</width>
243+
<height>135</height>
244+
</size>
245+
</property>
246+
<property name="maximumSize">
247+
<size>
248+
<width>16777215</width>
249+
<height>16777215</height>
250+
</size>
251+
</property>
252+
<property name="toolTip">
253+
<string>Select item to identify geometry of feature</string>
254+
</property>
255+
</widget>
256+
</item>
257+
<item>
258+
<widget class="QCheckBox" name="showLogProcessingCheckBox">
259+
<property name="toolTip">
260+
<string>Check to show log processing of query</string>
261+
</property>
262+
<property name="text">
263+
<string>Show log messages</string>
264+
</property>
265+
</widget>
266+
</item>
267+
<item>
268+
<widget class="QTextEdit" name="textEditStatus">
269+
<property name="enabled">
270+
<bool>true</bool>
271+
</property>
272+
<property name="textInteractionFlags">
273+
<set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
274+
</property>
275+
</widget>
276+
</item>
277+
<item>
278+
<widget class="QLabel" name="countSelectedFeats">
279+
<property name="minimumSize">
280+
<size>
281+
<width>18</width>
282+
<height>20</height>
283+
</size>
284+
</property>
285+
<property name="maximumSize">
286+
<size>
287+
<width>16777215</width>
288+
<height>30</height>
289+
</size>
290+
</property>
291+
<property name="toolTip">
292+
<string>Total of features from query</string>
293+
</property>
294+
<property name="text">
295+
<string> Total</string>
296+
</property>
297+
</widget>
298+
</item>
299+
</layout>
300+
</widget>
301+
</item>
302+
<item row="7" column="0">
303+
<spacer name="verticalSpacer">
304+
<property name="orientation">
305+
<enum>Qt::Vertical</enum>
306+
</property>
307+
<property name="sizeHint" stdset="0">
308+
<size>
309+
<width>20</width>
310+
<height>40</height>
311+
</size>
312+
</property>
313+
</spacer>
314+
</item>
299315
</layout>
300316
</widget>
301317
<resources/>

0 commit comments

Comments
 (0)