![]() |
COLNEO Pro 1.0
|
Data Structures | |
class | PropertyType |
class | PropertyTypeKey |
Enumerations | |
enum class | eDataType { } |
enum class | eDomain : uint32_t { } |
enum | eObjectStatus { None = 0 , Visible = 1 << 0 , Selected = 1 << 1 , Wired = 1 << 2 , Locked = 1 << 3 } |
Functions | |
QString | formatVariantByDataType (QVariant &value, eDataType dataType, QLocale &locale, char format='g', int precision=15) |
QList< BaseObject * > | reduceToTopLevelObjects (QList< BaseObject * > &objectList) |
separateModelsFromObjects (BaseObject *rootObject, QList< IModel * > &models, QSet< BaseObject * > &objects, QSet< ProxyObject * > &proxies) | |
bool | setVariantFromString (QVariant &variant, QString &value, eDataType dataType, QLocale &locale) |
Generic Object Model.
|
strong |
Available data types.
|
strong |
enum eObjectStatus |
QString formatVariantByDataType | ( | QVariant & | value, |
eDataType | dataType, | ||
QLocale & | locale, | ||
char | format = 'g', | ||
int | precision = 15 ) |
Replacement for the build-in QVariant::toString() method which does not take locale settings into account.
value | |
dataType | |
locale | |
format | 'f' or 'g' |
precision |
QList< BaseObject * > reduceToTopLevelObjects | ( | QList< BaseObject * > & | objectList | ) |
Remove nested objects from a list of objects.
objectList |
separateModelsFromObjects | ( | BaseObject * | rootObject, |
QList< IModel * > & | models, | ||
QSet< BaseObject * > & | objects, | ||
QSet< ProxyObject * > & | proxies ) |
Collect objects and models from root. The child objects of a model are not collected, the recursion ends at this branch.
[out] | models | |
rootObject | ||
[out] | objects | |
[out] | proxies |
bool setVariantFromString | ( | QVariant & | variant, |
QString & | value, | ||
eDataType | dataType, | ||
QLocale & | locale ) |
variant | |
value | |
dataType | |
locale |