Skip to content

Commit 92fe9bc

Browse files
committedMay 16, 2019
[ui] Follow up tweaks to browser feature list toolbar feature:
- use tool button autoRaise=true look consistently - rework first/previous/next/last arrow svg (and compress) - uppercase tooltip - pan icon -> pan action, zoom icon -> zoom action ;)
1 parent 3017c7a commit 92fe9bc

File tree

5 files changed

+25
-176
lines changed

5 files changed

+25
-176
lines changed
 
Lines changed: 1 addition & 1 deletion

Error rendering embedded code

Invalid image source.

Lines changed: 1 addition & 1 deletion

Error rendering embedded code

Invalid image source.

Lines changed: 1 addition & 81 deletions

Error rendering embedded code

Invalid image source.

Lines changed: 1 addition & 81 deletions

Error rendering embedded code

Invalid image source.

‎src/ui/qgsdualviewbase.ui‎

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
<number>0</number>
146146
</property>
147147
<item>
148-
<widget class="QPushButton" name="mFirstFeatureButton">
148+
<widget class="QToolButton" name="mFirstFeatureButton">
149149
<property name="maximumSize">
150150
<size>
151151
<width>24</width>
@@ -159,13 +159,13 @@
159159
<iconset resource="../../images/images.qrc">
160160
<normaloff>:/images/themes/default/mActionDoubleArrowLeft.svg</normaloff>:/images/themes/default/mActionDoubleArrowLeft.svg</iconset>
161161
</property>
162-
<property name="flat">
162+
<property name="autoRaise">
163163
<bool>true</bool>
164164
</property>
165165
</widget>
166166
</item>
167167
<item>
168-
<widget class="QPushButton" name="mPreviousFeatureButton">
168+
<widget class="QToolButton" name="mPreviousFeatureButton">
169169
<property name="maximumSize">
170170
<size>
171171
<width>24</width>
@@ -179,13 +179,13 @@
179179
<iconset resource="../../images/images.qrc">
180180
<normaloff>:/images/themes/default/mActionArrowLeft.svg</normaloff>:/images/themes/default/mActionArrowLeft.svg</iconset>
181181
</property>
182-
<property name="flat">
182+
<property name="autoRaise">
183183
<bool>true</bool>
184184
</property>
185185
</widget>
186186
</item>
187187
<item>
188-
<widget class="QPushButton" name="mNextFeatureButton">
188+
<widget class="QToolButton" name="mNextFeatureButton">
189189
<property name="sizePolicy">
190190
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
191191
<horstretch>0</horstretch>
@@ -205,13 +205,13 @@
205205
<iconset resource="../../images/images.qrc">
206206
<normaloff>:/images/themes/default/mActionArrowRight.svg</normaloff>:/images/themes/default/mActionArrowRight.svg</iconset>
207207
</property>
208-
<property name="flat">
208+
<property name="autoRaise">
209209
<bool>true</bool>
210210
</property>
211211
</widget>
212212
</item>
213213
<item>
214-
<widget class="QPushButton" name="mLastFeatureButton">
214+
<widget class="QToolButton" name="mLastFeatureButton">
215215
<property name="maximumSize">
216216
<size>
217217
<width>24</width>
@@ -225,7 +225,7 @@
225225
<iconset resource="../../images/images.qrc">
226226
<normaloff>:/images/themes/default/mActionDoubleArrowRight.svg</normaloff>:/images/themes/default/mActionDoubleArrowRight.svg</iconset>
227227
</property>
228-
<property name="flat">
228+
<property name="autoRaise">
229229
<bool>true</bool>
230230
</property>
231231
</widget>
@@ -275,12 +275,15 @@
275275
<property name="checkable">
276276
<bool>true</bool>
277277
</property>
278+
<property name="autoRaise">
279+
<bool>true</bool>
280+
</property>
278281
</widget>
279282
</item>
280283
<item>
281-
<widget class="QToolButton" name="mAutoZoomButton">
284+
<widget class="QToolButton" name="mAutoPanButton">
282285
<property name="toolTip">
283-
<string>automatically zoom to currently edited feature</string>
286+
<string>Automatically pan to currently edited feature</string>
284287
</property>
285288
<property name="text">
286289
<string/>
@@ -292,12 +295,15 @@
292295
<property name="checkable">
293296
<bool>true</bool>
294297
</property>
298+
<property name="autoRaise">
299+
<bool>true</bool>
300+
</property>
295301
</widget>
296302
</item>
297303
<item>
298-
<widget class="QToolButton" name="mAutoPanButton">
304+
<widget class="QToolButton" name="mAutoZoomButton">
299305
<property name="toolTip">
300-
<string>automatically pan to currently edited feature</string>
306+
<string>Automatically zoom to currently edited feature</string>
301307
</property>
302308
<property name="text">
303309
<string/>
@@ -309,6 +315,9 @@
309315
<property name="checkable">
310316
<bool>true</bool>
311317
</property>
318+
<property name="autoRaise">
319+
<bool>true</bool>
320+
</property>
312321
</widget>
313322
</item>
314323
</layout>

0 commit comments

Comments
 (0)
Please sign in to comment.