open_iA 2024.7
Loading...
Searching...
No Matches
Functions
iAValueType.cpp File Reference
#include "iAValueType.h"
#include "iALog.h"
#include "iAStringHelper.h"
#include <QColor>
#include <QString>
#include <QVariant>

Functions

QVariant colorToVariant (QColor const &c)
 Convert a given QColor to its internally used QVariant representation (a string)
 
iAValueType Str2ValueType (QString const &str)
 
QString ValueType2Str (iAValueType type)
 
QColor variantToColor (QVariant const &v)
 Convert QVariant with value type iAValueType::Color (internally stored as string) to a QColor.
 
QString variantValueToString (iAValueType valueType, QVariant value)
 convert the QVariant of the given iAValueType to a string (describing its content, for human-readable output)
 

Function Documentation

◆ colorToVariant()

QVariant colorToVariant ( QColor const & c)

Convert a given QColor to its internally used QVariant representation (a string)

◆ Str2ValueType()

iAValueType Str2ValueType ( QString const & str)

◆ ValueType2Str()

QString ValueType2Str ( iAValueType type)

◆ variantToColor()

QColor variantToColor ( QVariant const & v)

Convert QVariant with value type iAValueType::Color (internally stored as string) to a QColor.

◆ variantValueToString()

QString variantValueToString ( iAValueType valueType,
QVariant value )

convert the QVariant of the given iAValueType to a string (describing its content, for human-readable output)