Skip to content

Commit f05f2b6

Browse files
committed
[ui] improve confusing vector layer properties' display panel
1 parent 77a598e commit f05f2b6

2 files changed

Lines changed: 40 additions & 12 deletions

File tree

src/ui/qgisapp.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@
13101310
<normaloff>:/images/themes/default/mActionMapTips.svg</normaloff>:/images/themes/default/mActionMapTips.svg</iconset>
13111311
</property>
13121312
<property name="text">
1313-
<string>Map Tips</string>
1313+
<string>Show Map Tips</string>
13141314
</property>
13151315
<property name="statusTip">
13161316
<string>Show information about a feature when the mouse is hovered over it</string>

src/ui/qgsvectorlayerpropertiesbase.ui

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,20 +1173,38 @@ border-radius: 2px;</string>
11731173
<number>0</number>
11741174
</property>
11751175
<item row="0" column="0">
1176-
<widget class="QLabel" name="label">
1177-
<property name="text">
1178-
<string>Display expression</string>
1176+
<widget class="QGroupBox" name="groupBox_22">
1177+
<property name="sizePolicy">
1178+
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
1179+
<horstretch>0</horstretch>
1180+
<verstretch>0</verstretch>
1181+
</sizepolicy>
11791182
</property>
1180-
</widget>
1181-
</item>
1182-
<item row="0" column="1">
1183-
<widget class="QgsFieldExpressionWidget" name="mDisplayExpressionWidget" native="true">
1184-
<property name="focusPolicy">
1185-
<enum>Qt::StrongFocus</enum>
1183+
<property name="title">
1184+
<string>Display Name</string>
11861185
</property>
1186+
<layout class="QGridLayout" name="gridLayout_50">
1187+
<item row="0" column="0">
1188+
<widget class="QgsFieldExpressionWidget" name="mDisplayExpressionWidget" native="true">
1189+
<property name="focusPolicy">
1190+
<enum>Qt::StrongFocus</enum>
1191+
</property>
1192+
</widget>
1193+
</item>
1194+
<item row="1" column="0">
1195+
<widget class="QLabel" name="labelDisplayNameInfo">
1196+
<property name="wordWrap">
1197+
<bool>true</bool>
1198+
</property>
1199+
<property name="text">
1200+
<string>The feature display name is used in identify results and attribute table's dual view list.</string>
1201+
</property>
1202+
</widget>
1203+
</item>
1204+
</layout>
11871205
</widget>
11881206
</item>
1189-
<item row="1" column="0" colspan="2">
1207+
<item row="1" column="0">
11901208
<widget class="QGroupBox" name="groupBox_2">
11911209
<property name="sizePolicy">
11921210
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
@@ -1195,7 +1213,7 @@ border-radius: 2px;</string>
11951213
</sizepolicy>
11961214
</property>
11971215
<property name="title">
1198-
<string>Map Tip</string>
1216+
<string>HTML Map Tip</string>
11991217
</property>
12001218
<layout class="QGridLayout" name="gridLayout_8">
12011219
<item row="1" column="2">
@@ -1240,6 +1258,16 @@ border-radius: 2px;</string>
12401258
</property>
12411259
</widget>
12421260
</item>
1261+
<item row="3" column="0" colspan="3">
1262+
<widget class="QLabel" name="labelMapTipInfo">
1263+
<property name="wordWrap">
1264+
<bool>true</bool>
1265+
</property>
1266+
<property name="text">
1267+
<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>
1268+
</property>
1269+
</widget>
1270+
</item>
12431271
</layout>
12441272
</widget>
12451273
</item>

0 commit comments

Comments
 (0)