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

Helper template class to convert QVariants to and from QPointFs. More...

Inheritance diagram for VariantConverter< QPointF >:
VariantConverterBase< QPointF >

Public Member Functions

QPointF fromVariant (const QVariant &value)
 Returns value converted to a QPointF. More...
 
- Public Member Functions inherited from VariantConverterBase< QPointF >
QVariant toVariant (const QPointF &value)
 Returns value converted as a QVariant. More...
 

Detailed Description

template<>
class VariantConverter< QPointF >

Helper template class to convert QVariants to and from QPointFs.

See also
VariantConverter

Member Function Documentation

QPointF VariantConverter< QPointF >::fromVariant ( const QVariant value)
inline

Returns value converted to a QPointF.

This method will convert QVariant's representing the QMetaType::QPointF type, as expected, but it will also convert from a QMetaType::QVariantList as well.

Parameters
valueQVariant to convert