Nuria Framework - Core
Core module of the NuriaProject Framework
 All Classes Functions Typedefs Enumerations Enumerator Groups
Functions
methods

Functions

static QVariant Nuria::Variant::convert (const QVariant &variant, int type)
 
template<typename T >
static QVariant Nuria::Variant::convert (const QVariant &variant)
 
template<typename T >
static bool Nuria::Variant::canConvert (const QVariant &variant)
 
static bool Nuria::Variant::canConvert (const QVariant &variant, int toType)
 
static bool Nuria::Variant::canConvert (int fromType, int toType)
 

Detailed Description

Function Documentation

template<typename T >
static bool Nuria::Variant::canConvert ( const QVariant &  variant)
inlinestatic

Returns true if the conversion is possible.

Warning
This method shares the semantics with QVariant::canConvert. This means that the conversion itself is possible, but not if a conversion would be successful!
static bool Nuria::Variant::canConvert ( const QVariant &  variant,
int  toType 
)
inlinestatic

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns true if variant can be converted to toType.

static bool Nuria::Variant::canConvert ( int  fromType,
int  toType 
)
static

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

static QVariant Nuria::Variant::convert ( const QVariant &  variant,
int  type 
)
static

Tries to convert variant to type. If conversion fails a invalid QVariant is returned.

template<typename T >
static QVariant Nuria::Variant::convert ( const QVariant &  variant)
inlinestatic

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.