diff options
Diffstat (limited to 'lib/configuration')
-rw-r--r-- | lib/configuration/configuration.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/configuration/configuration.h b/lib/configuration/configuration.h index d4770ae..1524536 100644 --- a/lib/configuration/configuration.h +++ b/lib/configuration/configuration.h @@ -56,6 +56,13 @@ public: return std::optional<QString>(QString::fromStdString(this->value<std::string>(path).value())); //return std::optional<QString>(vm[path].as<const char*>()); + } else if constexpr(std::is_same_v<T, QStringList>) { + QStringList r; + for(const std::string &item : this->value<std::vector<std::string>>(path).value()) { + r.append(QString::fromStdString(item)); + } + return std::optional<QStringList>(r); + } else if constexpr(std::is_same_v<T, std::string>) { if(vm[path].value().type() == typeid(int)) { |