qdesigner_internal::AbstractProperty< T > Class Template Reference

#include <qpropertyeditor_items_p.h>

Inheritance diagram for qdesigner_internal::AbstractProperty< T >:

Inheritance graph
[legend]
Collaboration diagram for qdesigner_internal::AbstractProperty< T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename T>
class qdesigner_internal::AbstractProperty< T >

Definition at line 130 of file qpropertyeditor_items_p.h.

Public Member Functions

 AbstractProperty (const T &value, const QString &name)
IProperty::Kind kind () const
QVariant decoration () const
QString propertyName () const
QVariant value () const
bool hasEditor () const
bool hasExternalEditor () const
QWidgetcreateExternalEditor (QWidget *parent)

Protected Attributes

m_value
QString m_name


Constructor & Destructor Documentation

template<typename T>
qdesigner_internal::AbstractProperty< T >::AbstractProperty ( const T &  value,
const QString name 
) [inline]

Definition at line 133 of file qpropertyeditor_items_p.h.

00134         : m_value(value), m_name(name) {}


Member Function Documentation

template<typename T>
IProperty::Kind qdesigner_internal::AbstractProperty< T >::kind (  )  const [inline, virtual]

Implements qdesigner_internal::IProperty.

Definition at line 136 of file qpropertyeditor_items_p.h.

00136 { return IProperty::Property_Normal; }

template<typename T>
QVariant qdesigner_internal::AbstractProperty< T >::decoration (  )  const [inline, virtual]

Implements qdesigner_internal::IProperty.

Definition at line 141 of file qpropertyeditor_items_p.h.

00141 { return QVariant(); }

template<typename T>
QString qdesigner_internal::AbstractProperty< T >::propertyName (  )  const [inline, virtual]

Implements qdesigner_internal::IProperty.

Definition at line 142 of file qpropertyeditor_items_p.h.

00142 { return m_name; }

template<typename T>
QVariant qdesigner_internal::AbstractProperty< T >::value (  )  const [inline, virtual]

Implements qdesigner_internal::IProperty.

Definition at line 143 of file qpropertyeditor_items_p.h.

Referenced by qdesigner_internal::LongLongProperty::setValue().

00143 { return qVariantFromValue(m_value); }

template<typename T>
bool qdesigner_internal::AbstractProperty< T >::hasEditor (  )  const [inline, virtual]

Implements qdesigner_internal::IProperty.

Definition at line 145 of file qpropertyeditor_items_p.h.

00145 { return true; }

template<typename T>
bool qdesigner_internal::AbstractProperty< T >::hasExternalEditor (  )  const [inline, virtual]

Implements qdesigner_internal::IProperty.

Definition at line 146 of file qpropertyeditor_items_p.h.

00146 { return false; }

template<typename T>
QWidget* qdesigner_internal::AbstractProperty< T >::createExternalEditor ( QWidget parent  )  [inline, virtual]

Implements qdesigner_internal::IProperty.

Definition at line 147 of file qpropertyeditor_items_p.h.

00147 { Q_UNUSED(parent); return 0; }


Member Data Documentation

template<typename T>
T qdesigner_internal::AbstractProperty< T >::m_value [protected]

Definition at line 150 of file qpropertyeditor_items_p.h.

Referenced by qdesigner_internal::LongLongProperty::setValue(), qdesigner_internal::LongLongProperty::toString(), qdesigner_internal::LongLongProperty::updateEditorContents(), and qdesigner_internal::LongLongProperty::updateValue().

template<typename T>
QString qdesigner_internal::AbstractProperty< T >::m_name [protected]

Definition at line 151 of file qpropertyeditor_items_p.h.


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