itom
Loading...
Searching...
No Matches
ito::QVector4DProperty Class Reference
Inheritance diagram for ito::QVector4DProperty:
Property

Public Member Functions

 QVector4DProperty (const QString &name=QString(), QObject *propertyObject=0, QObject *parent=0)
 
QVariant value (int role=Qt::UserRole) const
 
virtual void setValue (const QVariant &value)
 
void setEditorHints (const QString &hints)
 
float x () const
 
void setX (float x)
 
float y () const
 
void setY (float y)
 
float z () const
 
void setZ (float z)
 
float w () const
 
void setW (float w)
 
- Public Member Functions inherited from Property
 Property (const QString &name=QString(), QObject *propertyObject=0, QObject *parent=0)
 
virtual QString displayValue (int role=Qt::UserRole) const
 
QObject * propertyObject ()
 
bool isRoot ()
 
bool isReadOnly ()
 
int row ()
 
QString editorHints ()
 
QString info ()
 
virtual void setInfo (const QString &info)
 
bool enabled ()
 
virtual void setEnabled (bool enabled)
 
virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option)
 
virtual QVariant editorData (QWidget *editor)
 
virtual bool setEditorData (QWidget *editor, const QVariant &data)
 
PropertyfindPropertyObject (QObject *propertyObject)
 
 Property (const QString &name=QString(), QObject *propertyObject=0, QObject *parent=0)
 
QObject * propertyObject ()
 
bool isRoot ()
 
bool isReadOnly ()
 
int row ()
 
QString editorHints ()
 
virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option)
 
virtual QVariant editorData (QWidget *editor)
 
virtual bool setEditorData (QWidget *editor, const QVariant &data)
 
PropertyfindPropertyObject (QObject *propertyObject)
 

Properties

float x
 
float y
 
float z
 
float w
 

Private Member Functions

QString parseHints (const QString &hints, const QChar component)
 

Private Attributes

Propertym_x
 
Propertym_y
 
Propertym_z
 
Propertym_w
 

Additional Inherited Members

- Protected Attributes inherited from Property
QObject * m_propertyObject
 
QString m_hints
 
QString m_info
 
bool m_enabled
 

Member Function Documentation

◆ setEditorHints()

void ito::QVector4DProperty::setEditorHints ( const QString & hints)
virtual

Sets properties for the editor widget that is used to manipulate the data value managed by this instance

Parameters
hintsa string containing property settings for the editor widget that manipulates this property

Reimplemented from Property.

◆ setValue()

void ito::QVector4DProperty::setValue ( const QVariant & value)
virtual

Sets the value stored by this property

Parameters
valuethe data converted to a QVariant

Reimplemented from Property.

◆ value()

QVariant ito::QVector4DProperty::value ( int role = Qt::UserRole) const
virtual

The value stored by this property

Returns
QVariant the data converted to a QVariant

Reimplemented from Property.


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