VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Public Member Functions | List of all members
VariantConverter< QSet< T > > Class Template Reference

Helper template class to convert QVariantLists to and from QSets with a convertable value type T. More...

Public Member Functions

QSet< T > fromVariant (const QVariant &value)
 Returns value converted to a QSet<T>. More...
 
QVariant toVariant (const QSet< T > &value)
 Returns value converted to a QVariant of type QVariantList. More...
 

Detailed Description

template<typename T>
class VariantConverter< QSet< T > >

Helper template class to convert QVariantLists to and from QSets with a convertable value type T.

Template Parameters
Templatetype which can be converted by VariantConverter to and from a QVariant
See also
VariantConverter

Member Function Documentation

template<typename T >
QSet<T> VariantConverter< QSet< T > >::fromVariant ( const QVariant value)
inline

Returns value converted to a QSet<T>.

Template Parameters
Templatetype for which there needs to be a valid VariantConverter specialization.
Parameters
valueQVariant of type QVariantList to convert
template<typename T >
QVariant VariantConverter< QSet< T > >::toVariant ( const QSet< T > &  value)
inline

Returns value converted to a QVariant of type QVariantList.

Template Parameters
Templatetype for which there needs to be a valid VariantConverter specialization.
Parameters
valueTemplated QSet to convert