diff options
author | willemferguson <willemferguson@zoology.up.ac.za> | 2019-02-23 21:37:45 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-02-28 07:29:15 -0800 |
commit | 2cda45628202c7dc0ad695d3aea5a02f2daf7caa (patch) | |
tree | c9c51cc3b9efe063e3ca246e2ac9e90df8498203 /qt-models | |
parent | 22f98b0a16699ca273e0721d629faf2baa713332 (diff) | |
download | subsurface-2cda45628202c7dc0ad695d3aea5a02f2daf7caa.tar.gz |
Append the dive mode as a tag that is seen by the filter tool.
This allows one to filter dives by divemode, e.g. by typing
"CCR" or "Open circuit" in the tags textbox of the filter tool.
Quite useful if one dives using more than one dive mode. For the
purpose of the filter tool only the dive mode attribute is added
to the list of tags for the specific dive being considered. The
tag list for the same dive (in the XML dive log) is not affected
in any way.
Provide for translation in alternative languages (Response to
bstoeger's suggestion).
Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/filtermodels.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp index 93bb59abf..359b9a7f6 100644 --- a/qt-models/filtermodels.cpp +++ b/qt-models/filtermodels.cpp @@ -42,6 +42,7 @@ namespace { if (tags.isEmpty()) return true; QStringList dive_tags = get_taglist_string(d->tag_list).split(","); + dive_tags.append(gettextFromC::tr(divemode_text_ui[d->dc.divemode])); return check(tags, dive_tags, mode); } |