#include <qpropertyeditor_items_p.h>
Inheritance diagram for qdesigner_internal::IProperty:


Definition at line 56 of file qpropertyeditor_items_p.h.
Public Types | |
| enum | Kind |
Public Member Functions | |
| IProperty () | |
| virtual | ~IProperty () |
| bool | changed () const |
| void | setChanged (bool b) |
| bool | dirty () const |
| void | setDirty (bool b) |
| bool | hasReset () const |
| void | setHasReset (bool b) |
| bool | isFake () const |
| void | setFake (bool b) |
| virtual IProperty::Kind | kind () const=0 |
| virtual bool | isSeparator () const |
| virtual IProperty * | parent () const |
| virtual void | setParent (IProperty *parent) |
| virtual QString | propertyName () const=0 |
| virtual QVariant | value () const=0 |
| virtual void | setValue (const QVariant &value)=0 |
| virtual QString | toString () const=0 |
| virtual QVariant | decoration () const=0 |
| virtual bool | hasEditor () const=0 |
| virtual QWidget * | createEditor (QWidget *parent, const QObject *target, const char *receiver) const=0 |
| virtual void | updateEditorContents (QWidget *editor) |
| virtual void | updateValue (QWidget *editor) |
| virtual bool | hasExternalEditor () const=0 |
| virtual QWidget * | createExternalEditor (QWidget *parent)=0 |
Protected Attributes | |
| IProperty * | m_parent |
| uint | m_changed: 1 |
| uint | m_dirty: 1 |
| uint | m_fake: 1 |
| uint | m_reset: 1 |
Definition at line 59 of file qpropertyeditor_items_p.h.
00060 { 00061 Property_Normal, 00062 Property_Group 00063 00064 // ### more 00065 };
| qdesigner_internal::IProperty::IProperty | ( | ) | [inline] |
| virtual qdesigner_internal::IProperty::~IProperty | ( | ) | [inline, virtual] |
| bool qdesigner_internal::IProperty::changed | ( | ) | const [inline] |
Definition at line 77 of file qpropertyeditor_items_p.h.
Referenced by qdesigner_internal::StringListProperty::createEditor(), and qdesigner_internal::PaletteProperty::createEditor().
00077 { return m_changed; }
| void IProperty::setChanged | ( | bool | b | ) |
Definition at line 69 of file qpropertyeditor_items.cpp.
References isFake(), m_changed, p, parent(), and setDirty().
Referenced by qdesigner_internal::CharProperty::updateValue(), qdesigner_internal::StringProperty::updateValue(), qdesigner_internal::PaletteProperty::updateValue(), qdesigner_internal::ListProperty::updateValue(), qdesigner_internal::BoolProperty::updateValue(), qdesigner_internal::StringListProperty::updateValue(), qdesigner_internal::DateTimeProperty::updateValue(), qdesigner_internal::PixmapProperty::updateValue(), qdesigner_internal::IconProperty::updateValue(), qdesigner_internal::DoubleProperty::updateValue(), qdesigner_internal::SpinBoxDoubleProperty::updateValue(), qdesigner_internal::CursorProperty::updateValue(), qdesigner_internal::UrlProperty::updateValue(), qdesigner_internal::FlagsProperty::updateValue(), qdesigner_internal::IntProperty::updateValue(), qdesigner_internal::TimeProperty::updateValue(), qdesigner_internal::LongLongProperty::updateValue(), qdesigner_internal::DateProperty::updateValue(), and qdesigner_internal::MapProperty::updateValue().
00070 { 00071 if (isFake()) { 00072 IProperty *p = parent(); 00073 while (p != 0 && p->isFake()) 00074 p = p->parent(); 00075 if (p != 0) 00076 p->setChanged(true); 00077 } else { 00078 m_changed = b; 00079 } 00080 setDirty(true); 00081 }
Here is the call graph for this function:

| bool qdesigner_internal::IProperty::dirty | ( | ) | const [inline] |
Definition at line 80 of file qpropertyeditor_items_p.h.
Referenced by qdesigner_internal::QPropertyEditorModel::setData().
00080 { return m_dirty; }
| void IProperty::setDirty | ( | bool | b | ) |
Definition at line 56 of file qpropertyeditor_items.cpp.
References p.
Referenced by qdesigner_internal::QPropertyEditorDelegate::resetProperty(), setChanged(), and qdesigner_internal::QPropertyEditorModel::setData().
00057 { 00058 if (isFake()) { 00059 IProperty *p = parent(); 00060 while (p != 0 && p->isFake()) 00061 p = p->parent(); 00062 if (p != 0) 00063 p->setDirty(true); 00064 } else { 00065 m_dirty = b; 00066 } 00067 }
| bool qdesigner_internal::IProperty::hasReset | ( | ) | const [inline] |
| void qdesigner_internal::IProperty::setHasReset | ( | bool | b | ) | [inline] |
Definition at line 84 of file qpropertyeditor_items_p.h.
Referenced by qdesigner_internal::FontProperty::FontProperty().
| bool qdesigner_internal::IProperty::isFake | ( | ) | const [inline] |
Definition at line 86 of file qpropertyeditor_items_p.h.
Referenced by qdesigner_internal::QPropertyEditorModel::refresh(), setChanged(), and qdesigner_internal::QPropertyEditorModel::setData().
00086 { return m_fake; }
| void qdesigner_internal::IProperty::setFake | ( | bool | b | ) | [inline] |
Definition at line 87 of file qpropertyeditor_items_p.h.
Referenced by qdesigner_internal::AlignmentProperty::AlignmentProperty(), qdesigner_internal::ColorProperty::ColorProperty(), qdesigner_internal::FontProperty::FontProperty(), qdesigner_internal::PointFProperty::PointFProperty(), qdesigner_internal::PointProperty::PointProperty(), qdesigner_internal::RectFProperty::RectFProperty(), qdesigner_internal::RectProperty::RectProperty(), qdesigner_internal::SizeFProperty::SizeFProperty(), and qdesigner_internal::SizeProperty::SizeProperty().
| virtual IProperty::Kind qdesigner_internal::IProperty::kind | ( | ) | const [pure virtual] |
Referenced by qdesigner_internal::QPropertyEditorModel::rowCount().
| virtual bool qdesigner_internal::IProperty::isSeparator | ( | ) | const [inline, virtual] |
| virtual IProperty* qdesigner_internal::IProperty::parent | ( | ) | const [inline, virtual] |
Definition at line 92 of file qpropertyeditor_items_p.h.
Referenced by qdesigner_internal::BoolProperty::createEditor(), qdesigner_internal::DateTimeProperty::createEditor(), qdesigner_internal::LongLongProperty::createEditor(), qdesigner_internal::SeparatorProperty::createEditor(), qdesigner_internal::StringProperty::createEditor(), qdesigner_internal::IntProperty::createEditor(), qdesigner_internal::DoubleProperty::createEditor(), qdesigner_internal::PaletteProperty::createEditor(), qdesigner_internal::PropertyCollection::createEditor(), qdesigner_internal::DateProperty::createEditor(), qdesigner_internal::StringListProperty::createEditor(), qdesigner_internal::TimeProperty::createEditor(), qdesigner_internal::PixmapProperty::createEditor(), qdesigner_internal::AbstractPropertyGroup::createEditor(), qdesigner_internal::CursorProperty::createEditor(), qdesigner_internal::SpinBoxDoubleProperty::createEditor(), qdesigner_internal::UrlProperty::createEditor(), qdesigner_internal::IconProperty::createEditor(), qdesigner_internal::ListProperty::createEditor(), qdesigner_internal::MapProperty::createEditor(), qdesigner_internal::FlagsProperty::createEditor(), qdesigner_internal::CharProperty::createEditor(), qdesigner_internal::PropertyCollection::createExternalEditor(), qdesigner_internal::QPropertyEditorModel::refresh(), setChanged(), and qdesigner_internal::QPropertyEditorModel::setData().
00092 { return m_parent; }
| virtual void qdesigner_internal::IProperty::setParent | ( | IProperty * | parent | ) | [inline, virtual] |
Definition at line 93 of file qpropertyeditor_items_p.h.
Referenced by qdesigner_internal::PropertyCollection::addProperty(), qdesigner_internal::AlignmentProperty::AlignmentProperty(), qdesigner_internal::ColorProperty::ColorProperty(), qdesigner_internal::FontProperty::FontProperty(), qdesigner_internal::PointFProperty::PointFProperty(), qdesigner_internal::PointProperty::PointProperty(), qdesigner_internal::RectFProperty::RectFProperty(), qdesigner_internal::RectProperty::RectProperty(), qdesigner_internal::SizeFProperty::SizeFProperty(), qdesigner_internal::SizeProperty::SizeProperty(), and qdesigner_internal::StringProperty::StringProperty().
| virtual QString qdesigner_internal::IProperty::propertyName | ( | ) | const [pure virtual] |
Referenced by qdesigner_internal::QPropertyEditorDelegate::resetProperty().
| virtual QVariant qdesigner_internal::IProperty::value | ( | ) | const [pure virtual] |
| virtual void qdesigner_internal::IProperty::setValue | ( | const QVariant & | value | ) | [pure virtual] |
Referenced by qdesigner_internal::PointFProperty::setValue(), qdesigner_internal::AlignmentProperty::setValue(), qdesigner_internal::PointProperty::setValue(), qdesigner_internal::SizeFProperty::setValue(), qdesigner_internal::RectFProperty::setValue(), qdesigner_internal::ColorProperty::setValue(), qdesigner_internal::SizePolicyProperty::setValue(), qdesigner_internal::FontProperty::setValue(), qdesigner_internal::SizeProperty::setValue(), and qdesigner_internal::RectProperty::setValue().
| virtual QString qdesigner_internal::IProperty::toString | ( | ) | const [pure virtual] |
Referenced by qdesigner_internal::FontProperty::toString().
| virtual QVariant qdesigner_internal::IProperty::decoration | ( | ) | const [pure virtual] |
| virtual bool qdesigner_internal::IProperty::hasEditor | ( | ) | const [pure virtual] |
Referenced by qdesigner_internal::QPropertyEditorModel::isEditable().
| virtual QWidget* qdesigner_internal::IProperty::createEditor | ( | QWidget * | parent, | |
| const QObject * | target, | |||
| const char * | receiver | |||
| ) | const [pure virtual] |
Referenced by qdesigner_internal::QPropertyEditorDelegate::createEditor().
| virtual void qdesigner_internal::IProperty::updateEditorContents | ( | QWidget * | editor | ) | [inline, virtual] |
| virtual void qdesigner_internal::IProperty::updateValue | ( | QWidget * | editor | ) | [inline, virtual] |
| virtual bool qdesigner_internal::IProperty::hasExternalEditor | ( | ) | const [pure virtual] |
| virtual QWidget* qdesigner_internal::IProperty::createExternalEditor | ( | QWidget * | parent | ) | [pure virtual] |
IProperty* qdesigner_internal::IProperty::m_parent [protected] |
Definition at line 114 of file qpropertyeditor_items_p.h.
uint qdesigner_internal::IProperty::m_changed [protected] |
Definition at line 115 of file qpropertyeditor_items_p.h.
Referenced by setChanged(), and qdesigner_internal::FontProperty::setValue().
uint qdesigner_internal::IProperty::m_dirty [protected] |
Definition at line 116 of file qpropertyeditor_items_p.h.
uint qdesigner_internal::IProperty::m_fake [protected] |
Definition at line 117 of file qpropertyeditor_items_p.h.
uint qdesigner_internal::IProperty::m_reset [protected] |
Definition at line 118 of file qpropertyeditor_items_p.h.
1.5.1