diff options
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r-- | core/qthelper.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 1cef38184..d63ee3568 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -1282,6 +1282,14 @@ QString get_divepoint_gas_string(struct dive *d, const divedatapoint &p) return get_gas_string(d->cylinder[idx].gasmix); } +QString get_taglist_string(struct tag_entry *tag_list) +{ + char *buffer = taglist_get_tagstring(tag_list); + QString ret = QString::fromUtf8(buffer); + free(buffer); + return ret; +} + weight_t string_to_weight(const char *str) { const char *end; |