Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ui] improve confusing vector layer properties' display panel
  • Loading branch information
nirvn committed Jul 19, 2018
1 parent 3732dec commit 287a80a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/ui/qgisapp.ui
Expand Up @@ -1310,7 +1310,7 @@
<normaloff>:/images/themes/default/mActionMapTips.svg</normaloff>:/images/themes/default/mActionMapTips.svg</iconset>
</property>
<property name="text">
<string>Map Tips</string>
<string>Show Map Tips</string>
</property>
<property name="statusTip">
<string>Show information about a feature when the mouse is hovered over it</string>
Expand Down
50 changes: 39 additions & 11 deletions src/ui/qgsvectorlayerpropertiesbase.ui
Expand Up @@ -1173,20 +1173,38 @@ border-radius: 2px;</string>
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Display expression</string>
<widget class="QGroupBox" name="groupBox_22">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QgsFieldExpressionWidget" name="mDisplayExpressionWidget" native="true">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
<property name="title">
<string>Display Name</string>
</property>
<layout class="QGridLayout" name="gridLayout_50">
<item row="0" column="0">
<widget class="QgsFieldExpressionWidget" name="mDisplayExpressionWidget" native="true">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelDisplayNameInfo">
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="text">
<string>The feature display name is used in identify results and attribute table's dual view list.</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0" colspan="2">
<item row="1" column="0">
<widget class="QGroupBox" name="groupBox_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
Expand All @@ -1195,7 +1213,7 @@ border-radius: 2px;</string>
</sizepolicy>
</property>
<property name="title">
<string>Map Tip</string>
<string>HTML Map Tip</string>
</property>
<layout class="QGridLayout" name="gridLayout_8">
<item row="1" column="2">
Expand Down Expand Up @@ -1240,6 +1258,16 @@ border-radius: 2px;</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="3">
<widget class="QLabel" name="labelMapTipInfo">
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="text">
<string>The HTML map tips are shown when moving mouse over features of the currently selected layer when the 'Show Map Tips' action is toggled on. If no HTML code is set, the feature display name is used.</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
Expand Down

0 comments on commit 287a80a

Please sign in to comment.