mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Notes pane: move the location taxonomy to a better spot
And display it smaller, marked as "tags". Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b42bae2ce8
commit
80f26912b0
2 changed files with 24 additions and 15 deletions
|
@ -501,6 +501,7 @@ void MainTab::updateDiveInfo(bool clear)
|
||||||
// construct the location tags
|
// construct the location tags
|
||||||
QString locationTag;
|
QString locationTag;
|
||||||
if (ds->taxonomy.nr) {
|
if (ds->taxonomy.nr) {
|
||||||
|
locationTag = "<small><small>(tags: ";
|
||||||
QString connector = "";
|
QString connector = "";
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
qDebug() << "looking for category" << prefs.geocoding.category[i];
|
qDebug() << "looking for category" << prefs.geocoding.category[i];
|
||||||
|
@ -513,6 +514,7 @@ void MainTab::updateDiveInfo(bool clear)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
locationTag += ")</small></small>";
|
||||||
}
|
}
|
||||||
ui.location->setText(ds->name);
|
ui.location->setText(ds->name);
|
||||||
ui.locationTags->setText(locationTag);
|
ui.locationTags->setText(locationTag);
|
||||||
|
|
|
@ -170,6 +170,8 @@
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="LocationLayout" stretch="0,1">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="LocationLabel">
|
<widget class="QLabel" name="LocationLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -185,8 +187,13 @@
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="textFormat">
|
||||||
|
<enum>Qt::RichText</enum>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue