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


Definition at line 154 of file qpropertyeditor_items_p.h.
Public Member Functions | |
| AbstractPropertyGroup (const QString &name) | |
| ~AbstractPropertyGroup () | |
| IProperty::Kind | kind () const |
| int | indexOf (IProperty *property) const |
| int | propertyCount () const |
| IProperty * | propertyAt (int index) const |
| QString | propertyName () const |
| QVariant | decoration () const |
| QString | toString () const |
| bool | hasEditor () const |
| QWidget * | createEditor (QWidget *parent, const QObject *target, const char *receiver) const |
| virtual void | updateEditorContents (QWidget *editor) |
| bool | hasExternalEditor () const |
| QWidget * | createExternalEditor (QWidget *parent) |
Protected Attributes | |
| QString | m_name |
| QList< IProperty * > | m_properties |
| qdesigner_internal::AbstractPropertyGroup::AbstractPropertyGroup | ( | const QString & | name | ) | [inline] |
| qdesigner_internal::AbstractPropertyGroup::~AbstractPropertyGroup | ( | ) | [inline] |
Definition at line 160 of file qpropertyeditor_items_p.h.
References qDeleteAll().
00161 { qDeleteAll(m_properties); }
Here is the call graph for this function:

| IProperty::Kind qdesigner_internal::AbstractPropertyGroup::kind | ( | ) | const [inline, virtual] |
Implements qdesigner_internal::IProperty.
Definition at line 163 of file qpropertyeditor_items_p.h.
00163 { return Property_Group; }
| int qdesigner_internal::AbstractPropertyGroup::indexOf | ( | IProperty * | property | ) | const [inline, virtual] |
Implements qdesigner_internal::IPropertyGroup.
Definition at line 168 of file qpropertyeditor_items_p.h.
00168 { return m_properties.indexOf(property); }
| int qdesigner_internal::AbstractPropertyGroup::propertyCount | ( | ) | const [inline, virtual] |
Implements qdesigner_internal::IPropertyGroup.
Definition at line 169 of file qpropertyeditor_items_p.h.
00169 { return m_properties.size(); }
| IProperty* qdesigner_internal::AbstractPropertyGroup::propertyAt | ( | int | index | ) | const [inline, virtual] |
Implements qdesigner_internal::IPropertyGroup.
Definition at line 170 of file qpropertyeditor_items_p.h.
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(), qdesigner_internal::RectProperty::setValue(), qdesigner_internal::FontProperty::toString(), qdesigner_internal::PointProperty::value(), qdesigner_internal::RectProperty::value(), qdesigner_internal::ColorProperty::value(), qdesigner_internal::AlignmentProperty::value(), qdesigner_internal::PointFProperty::value(), qdesigner_internal::SizePolicyProperty::value(), qdesigner_internal::SizeFProperty::value(), qdesigner_internal::RectFProperty::value(), and qdesigner_internal::SizeProperty::value().
00170 { return m_properties.at(index); }
| QString qdesigner_internal::AbstractPropertyGroup::propertyName | ( | ) | const [inline, virtual] |
Implements qdesigner_internal::IProperty.
Definition at line 176 of file qpropertyeditor_items_p.h.
00177 { return m_name; }
| QVariant qdesigner_internal::AbstractPropertyGroup::decoration | ( | ) | const [inline, virtual] |
Implements qdesigner_internal::IProperty.
Definition at line 179 of file qpropertyeditor_items_p.h.
00180 { return QVariant(); }
| QString qdesigner_internal::AbstractPropertyGroup::toString | ( | ) | const [inline, virtual] |
Implements qdesigner_internal::IProperty.
Definition at line 182 of file qpropertyeditor_items_p.h.
References i.
Referenced by updateEditorContents().
00183 { 00184 QString text = QLatin1String("["); 00185 for (int i=0; i<propertyCount(); ++i) { 00186 text += propertyAt(i)->toString(); 00187 if (i+1 < propertyCount()) 00188 text += QLatin1String(", "); 00189 } 00190 text += QLatin1String("]"); 00191 return text; 00192 }
| bool qdesigner_internal::AbstractPropertyGroup::hasEditor | ( | ) | const [inline, virtual] |
| QWidget * AbstractPropertyGroup::createEditor | ( | QWidget * | parent, | |
| const QObject * | target, | |||
| const char * | receiver | |||
| ) | const [virtual] |
Implements qdesigner_internal::IProperty.
Definition at line 85 of file qpropertyeditor_items.cpp.
References QPalette::Base, qdesigner_internal::IProperty::parent(), QWidget::setBackgroundRole(), and QLabel::setIndent().
00086 { 00087 Q_UNUSED(target); 00088 Q_UNUSED(receiver); 00089 00090 QLabel *label = new QLabel(parent); 00091 label->setIndent(2); // ### hardcode it should have the same value of textMargin in QItemDelegate 00092 label->setBackgroundRole(QPalette::Base); 00093 return label; 00094 }
Here is the call graph for this function:

| void AbstractPropertyGroup::updateEditorContents | ( | QWidget * | editor | ) | [virtual] |
Reimplemented from qdesigner_internal::IProperty.
Definition at line 96 of file qpropertyeditor_items.cpp.
References QLabel::setText(), and toString().
00097 { 00098 QLabel *label = qobject_cast<QLabel*>(editor); 00099 if (label == 0) 00100 return; 00101 label->setText(toString()); 00102 }
Here is the call graph for this function:

| bool qdesigner_internal::AbstractPropertyGroup::hasExternalEditor | ( | ) | const [inline, virtual] |
| QWidget* qdesigner_internal::AbstractPropertyGroup::createExternalEditor | ( | QWidget * | parent | ) | [inline, virtual] |
Implements qdesigner_internal::IProperty.
Definition at line 203 of file qpropertyeditor_items_p.h.
00204 { Q_UNUSED(parent); return 0; }
Definition at line 207 of file qpropertyeditor_items_p.h.
Definition at line 208 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(), qdesigner_internal::SizePolicyProperty::SizePolicyProperty(), qdesigner_internal::SizeProperty::SizeProperty(), and qdesigner_internal::StringProperty::StringProperty().
1.5.1