#include #include namespace Utils { class Helper { Q_DECLARE_TR_FUNCTIONS(Utils::Helper); public: template void fromJson(const QJsonValue &json, Type &value); }; template<> void Helper::fromJson(const QJsonValue &json, bool &value); template<> void Helper::fromJson(const QJsonValue &json, double &value); }