Skip to content

Commit d546053

Browse files
committedMay 16, 2019
[ui] Further tweaks to browser feature list toolbar:
- use dedicated icons (avoids confusion with pan/zoom to selected features) - use even spacing across the row (looks much better, more spacing)
1 parent 0804e34 commit d546053

File tree

4 files changed

+65
-65
lines changed

4 files changed

+65
-65
lines changed
 

‎images/images.qrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@
329329
<file>themes/default/mActionOffsetPointSymbols.svg</file>
330330
<file>themes/default/mActionOptions.svg</file>
331331
<file>themes/default/mActionPan.svg</file>
332+
<file>themes/default/mActionPanTo.svg</file>
332333
<file>themes/default/mActionPanToSelected.svg</file>
333334
<file>themes/default/mActionPinLabels.svg</file>
334335
<file>themes/default/mActionProcessSelected.svg</file>
@@ -408,6 +409,7 @@
408409
<file>themes/default/mActionZoomLast.svg</file>
409410
<file>themes/default/mActionZoomNext.svg</file>
410411
<file>themes/default/mActionZoomOut.svg</file>
412+
<file>themes/default/mActionZoomTo.svg</file>
411413
<file>themes/default/mActionZoomToBookmark.svg</file>
412414
<file>themes/default/mActionZoomToLayer.svg</file>
413415
<file>themes/default/mActionZoomToSelected.svg</file>
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

‎src/ui/qgsdualviewbase.ui

Lines changed: 61 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@
144144
<property name="bottomMargin">
145145
<number>0</number>
146146
</property>
147+
<property name="spacing">
148+
<number>1</number>
149+
</property>
147150
<item>
148151
<widget class="QToolButton" name="mFirstFeatureButton">
149152
<property name="maximumSize">
@@ -256,71 +259,64 @@
256259
</spacer>
257260
</item>
258261
<item>
259-
<layout class="QHBoxLayout" name="horizontalLayout_2">
260-
<property name="spacing">
261-
<number>0</number>
262-
</property>
263-
<item>
264-
<widget class="QToolButton" name="mFlashButton">
265-
<property name="toolTip">
266-
<string>Highlight currently edited feature on map</string>
267-
</property>
268-
<property name="text">
269-
<string/>
270-
</property>
271-
<property name="icon">
272-
<iconset resource="../../images/images.qrc">
273-
<normaloff>:/images/themes/default/mActionHighlightFeature.svg</normaloff>:/images/themes/default/mActionHighlightFeature.svg</iconset>
274-
</property>
275-
<property name="checkable">
276-
<bool>true</bool>
277-
</property>
278-
<property name="autoRaise">
279-
<bool>true</bool>
280-
</property>
281-
</widget>
282-
</item>
283-
<item>
284-
<widget class="QToolButton" name="mAutoPanButton">
285-
<property name="toolTip">
286-
<string>Automatically pan to currently edited feature</string>
287-
</property>
288-
<property name="text">
289-
<string/>
290-
</property>
291-
<property name="icon">
292-
<iconset resource="../../images/images.qrc">
293-
<normaloff>:/images/themes/default/mActionPanToSelected.svg</normaloff>:/images/themes/default/mActionPanToSelected.svg</iconset>
294-
</property>
295-
<property name="checkable">
296-
<bool>true</bool>
297-
</property>
298-
<property name="autoRaise">
299-
<bool>true</bool>
300-
</property>
301-
</widget>
302-
</item>
303-
<item>
304-
<widget class="QToolButton" name="mAutoZoomButton">
305-
<property name="toolTip">
306-
<string>Automatically zoom to currently edited feature</string>
307-
</property>
308-
<property name="text">
309-
<string/>
310-
</property>
311-
<property name="icon">
312-
<iconset resource="../../images/images.qrc">
313-
<normaloff>:/images/themes/default/mActionZoomToSelected.svg</normaloff>:/images/themes/default/mActionZoomToSelected.svg</iconset>
314-
</property>
315-
<property name="checkable">
316-
<bool>true</bool>
317-
</property>
318-
<property name="autoRaise">
319-
<bool>true</bool>
320-
</property>
321-
</widget>
322-
</item>
323-
</layout>
262+
<widget class="QToolButton" name="mFlashButton">
263+
<property name="toolTip">
264+
<string>Highlight currently edited feature on map</string>
265+
</property>
266+
<property name="text">
267+
<string/>
268+
</property>
269+
<property name="icon">
270+
<iconset resource="../../images/images.qrc">
271+
<normaloff>:/images/themes/default/mActionHighlightFeature.svg</normaloff>:/images/themes/default/mActionHighlightFeature.svg</iconset>
272+
</property>
273+
<property name="checkable">
274+
<bool>true</bool>
275+
</property>
276+
<property name="autoRaise">
277+
<bool>true</bool>
278+
</property>
279+
</widget>
280+
</item>
281+
<item>
282+
<widget class="QToolButton" name="mAutoPanButton">
283+
<property name="toolTip">
284+
<string>Automatically pan to currently edited feature</string>
285+
</property>
286+
<property name="text">
287+
<string/>
288+
</property>
289+
<property name="icon">
290+
<iconset resource="../../images/images.qrc">
291+
<normaloff>:/images/themes/default/mActionPanTo.svg</normaloff>:/images/themes/default/mActionPanTo.svg</iconset>
292+
</property>
293+
<property name="checkable">
294+
<bool>true</bool>
295+
</property>
296+
<property name="autoRaise">
297+
<bool>true</bool>
298+
</property>
299+
</widget>
300+
</item>
301+
<item>
302+
<widget class="QToolButton" name="mAutoZoomButton">
303+
<property name="toolTip">
304+
<string>Automatically zoom to currently edited feature</string>
305+
</property>
306+
<property name="text">
307+
<string/>
308+
</property>
309+
<property name="icon">
310+
<iconset resource="../../images/images.qrc">
311+
<normaloff>:/images/themes/default/mActionZoomTo.svg</normaloff>:/images/themes/default/mActionZoomTo.svg</iconset>
312+
</property>
313+
<property name="checkable">
314+
<bool>true</bool>
315+
</property>
316+
<property name="autoRaise">
317+
<bool>true</bool>
318+
</property>
319+
</widget>
324320
</item>
325321
</layout>
326322
</widget>

0 commit comments

Comments
 (0)
Please sign in to comment.