|
VoltAir
|
Helper template class to convert QVariantMaps to and from QMaps with a convertable value type T.
More...
Public Member Functions | |
| QMap< QString, T > | fromVariant (const QVariant &value) |
Returns value converted to a QMap<QString, T>. More... | |
| QVariant | toVariant (const QMap< QString, T > &value) |
Returns value converted to a QVariant of type QVariantMap. More... | |
Helper template class to convert QVariantMaps to and from QMaps with a convertable value type T.
| Template | type which can be converted by VariantConverter to and from a QVariant |
|
inline |
Returns value converted to a QMap<QString, T>.
| Template | type for which there needs to be a valid VariantConverter specialization. |
| value | QVariant of type QVariantMap to convert |
|
inline |
Returns value converted to a QVariant of type QVariantMap.
| Template | type for which there needs to be a valid VariantConverter specialization. |
| value | Templated QMap to convert |