From 80f26912b070328806436fbd3d1d4a37a56e4bb6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 1 Jul 2015 15:38:08 -0700 Subject: Notes pane: move the location taxonomy to a better spot And display it smaller, marked as "tags". Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 ++ qt-ui/maintab.ui | 37 ++++++++++++++++++++++--------------- 2 files changed, 24 insertions(+), 15 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index b5981c977..688927cb6 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -501,6 +501,7 @@ void MainTab::updateDiveInfo(bool clear) // construct the location tags QString locationTag; if (ds->taxonomy.nr) { + locationTag = "(tags: "; QString connector = ""; for (int i = 0; i < 3; i++) { qDebug() << "looking for category" << prefs.geocoding.category[i]; @@ -513,6 +514,7 @@ void MainTab::updateDiveInfo(bool clear) } } } + locationTag += ")"; } ui.location->setText(ds->name); ui.locationTags->setText(locationTag); diff --git a/qt-ui/maintab.ui b/qt-ui/maintab.ui index 7ac703076..c7801666f 100644 --- a/qt-ui/maintab.ui +++ b/qt-ui/maintab.ui @@ -171,21 +171,28 @@ 0 - - - Location - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - - - - - - + + + + + Location + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + + + + + + + + + + Qt::RichText + + + + -- cgit v1.2.3-70-g09d2