summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/propertywidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/propeditor/propertywidget.h')
-rw-r--r--lib/widgets/propeditor/propertywidget.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/widgets/propeditor/propertywidget.h b/lib/widgets/propeditor/propertywidget.h
index 42ebfa95..edbdf6f3 100644
--- a/lib/widgets/propeditor/propertywidget.h
+++ b/lib/widgets/propeditor/propertywidget.h
@@ -20,8 +20,8 @@
#ifndef PROPERTYWIDGET_H
#define PROPERTYWIDGET_H
-#include <qwidget.h>
-#include <qvariant.h>
+#include <tqwidget.h>
+#include <tqvariant.h>
/** @file propertywidget.h
@short Contains @ref PropertyLib::PropertyWidget class.
@@ -39,8 +39,8 @@ Subclass this class to create custom property viewer and editor widget.
Descendants should implement value() and setValue() methods.
Hint: in case you want to implement your property editor widget using
-existing widgets like QLineEdit, QComboBox, etc. you can't use multiple
-inheritance from two QObject descendants due to Qt library restriction.
+existing widgets like TQLineEdit, TQComboBox, etc. you can't use multiple
+inheritance from two TQObject descendants due to Qt library restriction.
Therefore use line edits and combo boxes as child widgets.
A set of predefined widgets for predefined property types are available
@@ -50,24 +50,24 @@ class PropertyWidget: public QWidget{
Q_OBJECT
public:
/**Constructs widget for property with name "propertyName".*/
- PropertyWidget(MultiProperty *property, QWidget *parent = 0, const char *name = 0);
+ PropertyWidget(MultiProperty *property, TQWidget *parent = 0, const char *name = 0);
virtual ~PropertyWidget() {}
/**@return the value currently entered in the editor widget.*/
- virtual QVariant value() const = 0;
+ virtual TQVariant value() const = 0;
/**Sets the value shown in the editor widget. Set emitChange to false
if you don't want to emit propertyChanged signal.*/
- virtual void setValue(const QVariant &value, bool emitChange=true) = 0;
+ virtual void setValue(const TQVariant &value, bool emitChange=true) = 0;
/**@return the name of edited property.*/
- virtual QString propertyName() const;
+ virtual TQString propertyName() const;
/**Sets the name of edited property.*/
virtual void setProperty(MultiProperty *property);
/**Sets the list of possible values shown in the editor widget. This method
does not emit propertyChanged signal.*/
- virtual void setValueList(const QMap<QString, QVariant> &valueList);
+ virtual void setValueList(const TQMap<TQString, TQVariant> &valueList);
/**Function to draw a property viewer when the editor isn't shown.*/
- virtual void drawViewer(QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value);
+ virtual void drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value);
/**Reverts the property value to previous setting.*/
virtual void undo();
@@ -77,7 +77,7 @@ signals:
to emit it only from @ref setValue() method.
@ref PropertyLib::PropertyEditor widget will connect this to the appropriate slot which
will make updates to the @ref PropertyLib::PropertyList that hold propeties.*/
- void propertyChanged(MultiProperty *property, const QVariant &value);
+ void propertyChanged(MultiProperty *property, const TQVariant &value);
protected:
MultiProperty *m_property;