Inserting values in the dtkCoreParameterInList<T>::toVariantHash doesnt insert anything
The following is probably flawed :
template <typename T>
inline QVariantHash dtkCoreParameterInList<T>::toVariantHash(void)
{
QVariantHash hash;
hash.insert("label", m_label);
hash.insert("doc", m_doc);
hash.insert("index", m_value_index);
hash.insert("values", QVariant::fromValue(m_values));
return hash;
}
Test case :
QVariantHash hash = in_list_parameter->toVariantHash();
qDebug() << hash;
QHash(("values", QVariant(QList, ))("index", QVariant(int, 0))("label", QVariant(QString, "Input"))("doc", QVariant(QString, "")))
qDebug() << in_list_parameter->values();
("Acquisitor", "ChannelsSelector", "Decimator", "Epocher", "GSR", "Marker 1", "Marker 2", "Marker 3", "TemporalFilter")