Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

Variant Class Reference

#include <variant.h>

List of all members.

Detailed Description

For information: QVariant::type() returns an enum for the current data type contained. e.g. returns QVariant::Color or QVariant::Rect
Daniel Clarke

David Saxton

Definition at line 33 of file variant.h.


void valueChanged (bool newValue)
void valueChanged (const QColor &newValue)
void valueChanged (double newValue)
void valueChanged (int newValue)
void valueChanged (const QString &newValue)
void valueChanged (QVariant newValue, QVariant oldValue)

Public Member Functions

QStringList allowed () const
void appendAllowed (const QString &allowed)
void appendAllowed (const QString &id, const QString &i18nName)
bool changed () const
int colorScheme () const
QVariant defaultValue () const
QString displayString () const
QString editorCaption () const
QString filter () const
QString id () const
bool isAdvanced () const
bool isHidden () const
double maxValue () const
double minAbsValue () const
double minValue () const
void setAdvanced (bool advanced)
void setAllowed (const QStringList &allowed)
void setAllowed (const QStringMap &allowed)
void setCaption (const QString &caption)
void setColorScheme (int colorScheme)
void setEditorCaption (const QString &caption)
void setFilter (const QString &filter)
void setHidden (bool hidden)
void setMaxValue (double value)
void setMinAbsValue (double val)
void setMinValue (double value)
void setToolbarCaption (const QString &caption)
void setType (Type::Value type)
void setUnit (const QString &unit)
void setValue (QVariant val)
QString toolbarCaption () const
Variant::Type::Value type () const
QString unit () const
QVariant value () const
 Variant (const QString &id, Type::Value type)

Private Attributes

QStringMap m_allowed
bool m_bAdvanced
bool m_bHidden
bool m_bSetDefault
int m_colorScheme
QVariant m_defaultValue
QString m_editorCaption
QString m_filter
const QString m_id
double m_maxValue
double m_minAbsValue
double m_minValue
QString m_toolbarCaption
Type::Value m_type
QString m_unit
QVariant m_value


class  Type

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index