itom  4.1.0
ito::QVector2DProperty Class Reference
Inheritance diagram for ito::QVector2DProperty:
Property

Public Member Functions

 QVector2DProperty (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)
 
- 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
 

Private Member Functions

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

Private Attributes

Propertym_x
 
Propertym_y
 

Additional Inherited Members

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

Member Function Documentation

void ito::QVector2DProperty::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.

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

Sets the value stored by this property

Parameters
valuethe data converted to a QVariant

Reimplemented from Property.

QVariant ito::QVector2DProperty::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: