#include <FxUIVariant.h>
|
| CFxUIVariantImpl * | m_pImpl = nullptr |
| |
Definition at line 30 of file FxUIVariant.h.
◆ CFxUIVariant() [1/10]
| CFxUIVariant::CFxUIVariant |
( |
| ) |
|
◆ CFxUIVariant() [2/10]
| CFxUIVariant::CFxUIVariant |
( |
int | val | ) |
|
Parameterized Constructor
◆ CFxUIVariant() [3/10]
◆ CFxUIVariant() [4/10]
| CFxUIVariant::CFxUIVariant |
( |
bool | val | ) |
|
◆ CFxUIVariant() [5/10]
| CFxUIVariant::CFxUIVariant |
( |
double | val | ) |
|
◆ CFxUIVariant() [6/10]
| CFxUIVariant::CFxUIVariant |
( |
float | val | ) |
|
◆ CFxUIVariant() [7/10]
◆ CFxUIVariant() [8/10]
◆ CFxUIVariant() [9/10]
◆ CFxUIVariant() [10/10]
| CFxUIVariant::CFxUIVariant |
( |
const QVariant & | variant | ) |
|
◆ ~CFxUIVariant()
| CFxUIVariant::~CFxUIVariant |
( |
| ) |
|
◆ isValid()
| bool CFxUIVariant::isValid |
( |
| ) |
const |
Returns true if the storage type of this variant is not UnknownType, otherwise returns false.
- Returns
- bool
◆ operator const QVariant &()
| CFxUIVariant::operator const QVariant & |
( |
| ) |
const |
◆ operator=()
◆ toBool()
| bool CFxUIVariant::toBool |
( |
| ) |
const |
Returns true if the variant has userType() Bool, otherwise returns false.
- Returns
- bool
◆ toByteArray()
◆ toDouble()
| double CFxUIVariant::toDouble |
( |
bool * | ok = nullptr | ) |
const |
Returns the variant as a double for a supported userType(), otherwise returns 0.0.
- Parameters
-
| is | Bool *ok which sets to true if the value could be converted to a double, otherwise *ok is set to false. |
- Returns
- double
◆ toFloat()
| float CFxUIVariant::toFloat |
( |
bool * | ok = nullptr | ) |
const |
Returns the variant as a float for a supported userType(), otherwise returns 0.0.
- Parameters
-
| is | Bool *ok which sets to true if the value could be converted to a float, otherwise *ok is set to false. |
- Returns
- float
◆ toInt()
| int CFxUIVariant::toInt |
( |
bool * | ok = nullptr | ) |
const |
Returns the variant as an int for a supported userType(), otherwise returns 0.
- Parameters
-
| is | Bool *ok which sets to true if the value could be converted to an int, otherwise *ok is set to false. |
- Returns
- int
◆ toString()
Returns the variant as a CFxUIString for a supported userType(), and for an unsupported variant returns an empty string.
- Returns
- CFxUIString
◆ toUInt()
| uint CFxUIVariant::toUInt |
( |
bool * | ok = nullptr | ) |
const |
Returns the variant as an unsigned int for a supported userType(), otherwise returns 0.
- Returns
- uint
◆ m_pImpl
| CFxUIVariantImpl* CFxUIVariant::m_pImpl = nullptr |
|
protected |
The documentation for this class was generated from the following file: