qdesigner_internal::PropertyCollection Class Reference

#include <qpropertyeditor_items_p.h>

Inheritance diagram for qdesigner_internal::PropertyCollection:

Inheritance graph
[legend]
Collaboration diagram for qdesigner_internal::PropertyCollection:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 211 of file qpropertyeditor_items_p.h.

Public Member Functions

 PropertyCollection (const QString &name)
 ~PropertyCollection ()
IProperty::Kind kind () const
void addProperty (IProperty *property)
void removeProperty (IProperty *property)
int indexOf (IProperty *property) const
int propertyCount () const
IPropertypropertyAt (int index) const
QString propertyName () const
QVariant value () const
void setValue (const QVariant &value)
QVariant decoration () const
QString toString () const
bool hasEditor () const
QWidgetcreateEditor (QWidget *parent, const QObject *target, const char *receiver) const
bool hasExternalEditor () const
QWidgetcreateExternalEditor (QWidget *parent)

Private Attributes

QString m_name
QList< IProperty * > m_properties


Constructor & Destructor Documentation

PropertyCollection::PropertyCollection ( const QString name  ) 

Definition at line 207 of file qpropertyeditor_items.cpp.

00208     : m_name(name)
00209 {
00210 }

PropertyCollection::~PropertyCollection (  ) 

Definition at line 212 of file qpropertyeditor_items.cpp.

References m_properties, and qDeleteAll().

00213 {
00214     qDeleteAll(m_properties);
00215 }

Here is the call graph for this function:


Member Function Documentation

IProperty::Kind qdesigner_internal::PropertyCollection::kind (  )  const [inline, virtual]

Implements qdesigner_internal::IProperty.

Definition at line 217 of file qpropertyeditor_items_p.h.

00218     { return Property_Group; }

void PropertyCollection::addProperty ( IProperty property  ) 

Definition at line 217 of file qpropertyeditor_items.cpp.

References m_properties, and qdesigner_internal::IProperty::setParent().

Referenced by qdesigner_internal::PropertyEditor::createPropertySheet().

00218 {
00219     property->setParent(this);
00220     m_properties.append(property);
00221 }

Here is the call graph for this function:

void PropertyCollection::removeProperty ( IProperty property  ) 

Definition at line 223 of file qpropertyeditor_items.cpp.

00224 {
00225     Q_UNUSED(property);
00226 }

int PropertyCollection::indexOf ( IProperty property  )  const [virtual]

Implements qdesigner_internal::IPropertyGroup.

Definition at line 228 of file qpropertyeditor_items.cpp.

References m_properties.

00229 {
00230     return m_properties.indexOf(property);
00231 }

int PropertyCollection::propertyCount (  )  const [virtual]

Implements qdesigner_internal::IPropertyGroup.

Definition at line 233 of file qpropertyeditor_items.cpp.

References m_properties.

00234 {
00235     return m_properties.size();
00236 }

IProperty * PropertyCollection::propertyAt ( int  index  )  const [virtual]

Implements qdesigner_internal::IPropertyGroup.

Definition at line 238 of file qpropertyeditor_items.cpp.

References m_properties.

00239 {
00240     return m_properties.at(index);
00241 }

QString PropertyCollection::propertyName (  )  const [virtual]

Implements qdesigner_internal::IProperty.

Definition at line 243 of file qpropertyeditor_items.cpp.

References m_name.

00244 {
00245     return m_name;
00246 }

QVariant PropertyCollection::value (  )  const [virtual]

Implements qdesigner_internal::IProperty.

Definition at line 248 of file qpropertyeditor_items.cpp.

Referenced by setValue().

00249 {
00250     return QVariant();
00251 }

void PropertyCollection::setValue ( const QVariant value  )  [virtual]

Implements qdesigner_internal::IProperty.

Definition at line 253 of file qpropertyeditor_items.cpp.

References value().

00254 {
00255     Q_UNUSED(value);
00256 }

Here is the call graph for this function:

QVariant qdesigner_internal::PropertyCollection::decoration (  )  const [inline, virtual]

Implements qdesigner_internal::IProperty.

Definition at line 238 of file qpropertyeditor_items_p.h.

00238 { return QVariant(); }

QString PropertyCollection::toString (  )  const [virtual]

Implements qdesigner_internal::IProperty.

Definition at line 258 of file qpropertyeditor_items.cpp.

00259 {
00260     return QString();
00261 }

bool PropertyCollection::hasEditor (  )  const [virtual]

Implements qdesigner_internal::IProperty.

Definition at line 263 of file qpropertyeditor_items.cpp.

00264 {
00265     return false;
00266 }

QWidget * PropertyCollection::createEditor ( QWidget parent,
const QObject target,
const char *  receiver 
) const [virtual]

Implements qdesigner_internal::IProperty.

Definition at line 268 of file qpropertyeditor_items.cpp.

References qdesigner_internal::IProperty::parent().

00269 {
00270     Q_UNUSED(parent);
00271     Q_UNUSED(target);
00272     Q_UNUSED(receiver);
00273     return 0;
00274 }

Here is the call graph for this function:

bool PropertyCollection::hasExternalEditor (  )  const [virtual]

Implements qdesigner_internal::IProperty.

Definition at line 276 of file qpropertyeditor_items.cpp.

00277 {
00278     return false;
00279 }

QWidget * PropertyCollection::createExternalEditor ( QWidget parent  )  [virtual]

Implements qdesigner_internal::IProperty.

Definition at line 281 of file qpropertyeditor_items.cpp.

References qdesigner_internal::IProperty::parent().

00282 {
00283     Q_UNUSED(parent);
00284     return 0;
00285 }

Here is the call graph for this function:


Member Data Documentation

QString qdesigner_internal::PropertyCollection::m_name [private]

Definition at line 248 of file qpropertyeditor_items_p.h.

Referenced by propertyName().

QList<IProperty*> qdesigner_internal::PropertyCollection::m_properties [private]

Definition at line 249 of file qpropertyeditor_items_p.h.

Referenced by addProperty(), indexOf(), propertyAt(), propertyCount(), and ~PropertyCollection().


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 20:31:00 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1