Skip to content

Commit df56de0

Browse files
committed
Update more labels to reflect project metadata in widget
1 parent 681cd41 commit df56de0

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

src/gui/qgsmetadatawidget.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ void QgsMetadataWidget::setMode( QgsMetadataWidget::Mode mode )
156156
mLabelContact->setText( tr( "Contact describe the owner of the %1." ).arg( type ) );
157157
mLabelLinks->setText( tr( "Links describe ancillary resources and information related to this %1." ).arg( type ) );
158158
mLabelHistory->setText( tr( "History about the %1." ).arg( type ) );
159+
labelKeywords->setText( tr( "<html><head/><body><p>Keywords are optional, and provide a way to provide additional descriptive information about "
160+
"the %1. Edits made in the categories tab will update the category entry below. For the concept, we suggest "
161+
"to use a standard based vocabulary such as <a href=\"https://www.eionet.europa.eu/gemet/en/inspire-themes/\">"
162+
"<span style=\" text-decoration: underline; color:#0000ff;\">GEMET.</span></a></p></body></html>" ).arg( type ) );
159163
btnAutoSource->setText( tr( "Set from %1" ).arg( mMode == LayerMetadata ? tr( "layer" ) : tr( "project" ) ) );
160164
}
161165

src/ui/qgsmetadatawidget.ui

+9-9
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<enum>QTabWidget::Rounded</enum>
3636
</property>
3737
<property name="currentIndex">
38-
<number>0</number>
38+
<number>8</number>
3939
</property>
4040
<widget class="QWidget" name="tabIdentificationDialog">
4141
<attribute name="title">
@@ -66,7 +66,7 @@
6666
<property name="geometry">
6767
<rect>
6868
<x>0</x>
69-
<y>-52</y>
69+
<y>0</y>
7070
<width>786</width>
7171
<height>721</height>
7272
</rect>
@@ -75,7 +75,7 @@
7575
<item>
7676
<widget class="QLabel" name="mIdLabel">
7777
<property name="text">
78-
<string>This page describes the basic attribution of the dataset. Please use the tooltips for more information.</string>
78+
<string>Label text set in qgsmetadatawidget.cpp</string>
7979
</property>
8080
<property name="wordWrap">
8181
<bool>true</bool>
@@ -382,7 +382,7 @@
382382
<item>
383383
<widget class="QLabel" name="mLabelCategories">
384384
<property name="text">
385-
<string>Dataset categories.</string>
385+
<string>Label text set in qgsmetadatawidget.cpp</string>
386386
</property>
387387
</widget>
388388
</item>
@@ -550,9 +550,9 @@
550550
</attribute>
551551
<layout class="QVBoxLayout" name="verticalLayout_2">
552552
<item>
553-
<widget class="QLabel" name="label_17">
553+
<widget class="QLabel" name="labelKeywords">
554554
<property name="text">
555-
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Keywords are optional, and provide a way to provide additional descriptive information about the dataset. Edits made in the categories tab will update the category entry below. For the concept, we suggest to use a standard based vocabulary such as &lt;a href=&quot;https://www.eionet.europa.eu/gemet/en/inspire-themes/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;GEMET.&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
555+
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Label text set in qgsmetadatawidget.cpp&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
556556
</property>
557557
<property name="wordWrap">
558558
<bool>true</bool>
@@ -1052,7 +1052,7 @@
10521052
<item>
10531053
<widget class="QLabel" name="mLabelContact">
10541054
<property name="text">
1055-
<string>Contact describe the owner of the dataset.</string>
1055+
<string>Label text set in qgsmetadatawidget.cpp</string>
10561056
</property>
10571057
</widget>
10581058
</item>
@@ -1334,7 +1334,7 @@
13341334
<string>a list of online resources associated with the resource.</string>
13351335
</property>
13361336
<property name="text">
1337-
<string>Links describe ancillary resources and information related to this dataset.</string>
1337+
<string>Label text set in qgsmetadatawidget.cpp</string>
13381338
</property>
13391339
</widget>
13401340
</item>
@@ -1406,7 +1406,7 @@
14061406
<item>
14071407
<widget class="QLabel" name="mLabelHistory">
14081408
<property name="text">
1409-
<string>History about the dataset.</string>
1409+
<string>Label text set in qgsmetadatawidget.cpp</string>
14101410
</property>
14111411
<property name="wordWrap">
14121412
<bool>true</bool>

0 commit comments

Comments
 (0)