#include <property_data.h>
Public Types | |
| MinRange = 0 | |
| MaxRange | |
| ActiveIndex | |
| ImagePath | |
| User | |
| numDataType | |
| enum | DataType { MinRange = 0, MaxRange, ActiveIndex, ImagePath, User, numDataType } |
Public Member Functions | |
| void | init (bool enable=true) |
| void | init (const QString &label, const QIcon &icon=QIcon()) |
| void | setLabel (const QString &label) |
| void | setIcon (const QIcon &icon) |
| void | setName (const char *name) |
| void | setData (DataType type, const QVariant &value) |
| void | setEnable (bool enable) |
| QString | label () |
| bool | isEnable () |
| bool | isInit () |
| QVariant | data (DataType type) const |
Private Attributes | |
| QString | m_name |
| QHash< QString, PropertyItem * > | m_properties |
Classes | |
| struct | PropertyItem |
| QVariant PropertyData::data | ( | DataType | type | ) | const [inline] |
| void PropertyData::init | ( | const QString & | label, | |
| const QIcon & | icon = QIcon() | |||
| ) | [inline] |
| void PropertyData::init | ( | bool | enable = true |
) | [inline] |
| bool PropertyData::isEnable | ( | ) | [inline] |
| bool PropertyData::isInit | ( | ) | [inline] |
| QString PropertyData::label | ( | ) | [inline] |
| void PropertyData::setData | ( | DataType | type, | |
| const QVariant & | value | |||
| ) | [inline] |
| void PropertyData::setEnable | ( | bool | enable | ) | [inline] |
| void PropertyData::setIcon | ( | const QIcon & | icon | ) | [inline] |
| void PropertyData::setLabel | ( | const QString & | label | ) | [inline] |
| void PropertyData::setName | ( | const char * | name | ) | [inline] |
QString PropertyData::m_name [private] |
active property all method query this name
QHash<QString, PropertyItem*> PropertyData::m_properties [private] |
1.4.7