diff options
Diffstat (limited to 'lib/koproperty/customproperty.h')
-rw-r--r-- | lib/koproperty/customproperty.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/koproperty/customproperty.h b/lib/koproperty/customproperty.h index dff3e990..60584ca3 100644 --- a/lib/koproperty/customproperty.h +++ b/lib/koproperty/customproperty.h @@ -22,7 +22,7 @@ #include "koproperty_global.h" -class QVariant; +class TQVariant; namespace KoProperty { @@ -40,21 +40,21 @@ class Property; class KOPROPERTY_EXPORT CustomProperty { public: - CustomProperty(Property *parent); + CustomProperty(Property *tqparent); virtual ~CustomProperty(); /*! This function is called by \ref Property::setValue() when a custom property is set. You don't have to modify the property value, it is done by Property class. - You just have to update child or parent properties value (m_property->parent()->setValue()). + You just have to update child or tqparent properties value (m_property->tqparent()->setValue()). Note that, when calling Property::setValue, you <b>need</b> to set useCustomProperty (3rd parameter) to false, or there will be infinite recursion. */ - virtual void setValue(const QVariant &value, bool rememberOldValue) = 0; + virtual void setValue(const TQVariant &value, bool rememberOldValue) = 0; /*! This function is called by \ref Property::value() when a custom property is set and \ref handleValue() is true. - You should return property's value, taken from parent's value.*/ - virtual QVariant value() const = 0; + You should return property's value, taken from tqparent's value.*/ + virtual TQVariant value() const = 0; /*! Tells whether CustomProperty should be used to get the property's value. CustomProperty::setValue() will always be called. But if hadleValue() == true, @@ -66,55 +66,55 @@ class KOPROPERTY_EXPORT CustomProperty Property *m_property; /*! This method emits the \a Set::propertyChanged() signal for all - sets our parent-property is registered in. */ + sets our tqparent-property is registered in. */ void emitPropertyChanged(); }; -//! \brief Custom property implementation for QSize type +//! \brief Custom property implementation for TQSize type class KOPROPERTY_EXPORT SizeCustomProperty : public CustomProperty { public: - SizeCustomProperty(Property *parent); + SizeCustomProperty(Property *tqparent); ~SizeCustomProperty(); - void setValue(const QVariant &value, bool rememberOldValue); - QVariant value() const; + void setValue(const TQVariant &value, bool rememberOldValue); + TQVariant value() const; bool handleValue() const; }; -//! \brief Custom property implementation for QPoint type +//! \brief Custom property implementation for TQPoint type class KOPROPERTY_EXPORT PointCustomProperty : public CustomProperty { public: - PointCustomProperty(Property *parent); + PointCustomProperty(Property *tqparent); ~PointCustomProperty(); - void setValue(const QVariant &value, bool rememberOldValue); - QVariant value() const; + void setValue(const TQVariant &value, bool rememberOldValue); + TQVariant value() const; bool handleValue() const; }; -//! \brief Custom property implementation for QRect type +//! \brief Custom property implementation for TQRect type class KOPROPERTY_EXPORT RectCustomProperty : public CustomProperty { public: - RectCustomProperty(Property *parent); + RectCustomProperty(Property *tqparent); ~RectCustomProperty(); - void setValue(const QVariant &value, bool rememberOldValue); - QVariant value() const; + void setValue(const TQVariant &value, bool rememberOldValue); + TQVariant value() const; bool handleValue() const; }; -//! \brief Custom property implementation for QSizePolicy type +//! \brief Custom property implementation for TQSizePolicy type class KOPROPERTY_EXPORT SizePolicyCustomProperty : public CustomProperty { public: - SizePolicyCustomProperty(Property *parent); + SizePolicyCustomProperty(Property *tqparent); ~SizePolicyCustomProperty(); - void setValue(const QVariant &value, bool rememberOldValue); - QVariant value() const; + void setValue(const TQVariant &value, bool rememberOldValue); + TQVariant value() const; bool handleValue() const; }; |