Skip to content

Commit

Permalink
[ui] Follow up tweaks to browser feature list toolbar feature:
Browse files Browse the repository at this point in the history
- 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 ;)
  • Loading branch information
nirvn committed May 16, 2019
1 parent 3017c7a commit 92fe9bc
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 176 deletions.
2 changes: 1 addition & 1 deletion images/themes/default/mActionArrowLeft.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion images/themes/default/mActionArrowRight.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 1 addition & 81 deletions images/themes/default/mActionDoubleArrowLeft.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 1 addition & 81 deletions images/themes/default/mActionDoubleArrowRight.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 21 additions & 12 deletions src/ui/qgsdualviewbase.ui
Expand Up @@ -145,7 +145,7 @@
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<widget class="QPushButton" name="mFirstFeatureButton"> <widget class="QToolButton" name="mFirstFeatureButton">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>24</width> <width>24</width>
Expand All @@ -159,13 +159,13 @@
<iconset resource="../../images/images.qrc"> <iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionDoubleArrowLeft.svg</normaloff>:/images/themes/default/mActionDoubleArrowLeft.svg</iconset> <normaloff>:/images/themes/default/mActionDoubleArrowLeft.svg</normaloff>:/images/themes/default/mActionDoubleArrowLeft.svg</iconset>
</property> </property>
<property name="flat"> <property name="autoRaise">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="mPreviousFeatureButton"> <widget class="QToolButton" name="mPreviousFeatureButton">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>24</width> <width>24</width>
Expand All @@ -179,13 +179,13 @@
<iconset resource="../../images/images.qrc"> <iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionArrowLeft.svg</normaloff>:/images/themes/default/mActionArrowLeft.svg</iconset> <normaloff>:/images/themes/default/mActionArrowLeft.svg</normaloff>:/images/themes/default/mActionArrowLeft.svg</iconset>
</property> </property>
<property name="flat"> <property name="autoRaise">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="mNextFeatureButton"> <widget class="QToolButton" name="mNextFeatureButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
Expand All @@ -205,13 +205,13 @@
<iconset resource="../../images/images.qrc"> <iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionArrowRight.svg</normaloff>:/images/themes/default/mActionArrowRight.svg</iconset> <normaloff>:/images/themes/default/mActionArrowRight.svg</normaloff>:/images/themes/default/mActionArrowRight.svg</iconset>
</property> </property>
<property name="flat"> <property name="autoRaise">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="mLastFeatureButton"> <widget class="QToolButton" name="mLastFeatureButton">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>24</width> <width>24</width>
Expand All @@ -225,7 +225,7 @@
<iconset resource="../../images/images.qrc"> <iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionDoubleArrowRight.svg</normaloff>:/images/themes/default/mActionDoubleArrowRight.svg</iconset> <normaloff>:/images/themes/default/mActionDoubleArrowRight.svg</normaloff>:/images/themes/default/mActionDoubleArrowRight.svg</iconset>
</property> </property>
<property name="flat"> <property name="autoRaise">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
Expand Down Expand Up @@ -275,12 +275,15 @@
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="mAutoZoomButton"> <widget class="QToolButton" name="mAutoPanButton">
<property name="toolTip"> <property name="toolTip">
<string>automatically zoom to currently edited feature</string> <string>Automatically pan to currently edited feature</string>
</property> </property>
<property name="text"> <property name="text">
<string/> <string/>
Expand All @@ -292,12 +295,15 @@
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="mAutoPanButton"> <widget class="QToolButton" name="mAutoZoomButton">
<property name="toolTip"> <property name="toolTip">
<string>automatically pan to currently edited feature</string> <string>Automatically zoom to currently edited feature</string>
</property> </property>
<property name="text"> <property name="text">
<string/> <string/>
Expand All @@ -309,6 +315,9 @@
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
Expand Down

0 comments on commit 92fe9bc

Please sign in to comment.