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 2bb2c5d72..b00201297 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -1219,6 +1219,14 @@ QString get_taglist_string(struct tag_entry *tag_list) return ret; } +QStringList stringToList(const QString &s) +{ + QStringList res = s.split(",", QString::SkipEmptyParts); + for (QString &str: res) + str = str.trimmed(); + return res; +} + weight_t string_to_weight(const char *str) { const char *end; |