summaryrefslogtreecommitdiffstats
path: root/lib/koproperty/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/koproperty/widget.h')
-rw-r--r--lib/koproperty/widget.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/koproperty/widget.h b/lib/koproperty/widget.h
index a758589e..9646ecc9 100644
--- a/lib/koproperty/widget.h
+++ b/lib/koproperty/widget.h
@@ -21,7 +21,7 @@
#ifndef KPROPERTY_PROPERTYWIDGET_H
#define KPROPERTY_PROPERTYWIDGET_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "koproperty_global.h"
namespace KoProperty {
@@ -33,20 +33,21 @@ class Property;
\author Cedric Pasteur <cedric.pasteur@free.fr>
\author Alexander Dymo <cloudtemple@mskat.net>
*/
-class KOPROPERTY_EXPORT Widget : public QWidget
+class KOPROPERTY_EXPORT Widget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- Widget(Property *property, QWidget *parent, const char *name="property_editor");
+ Widget(Property *property, TQWidget *tqparent, const char *name="property_editor");
virtual ~Widget();
/*! \return the value currently entered in the item editor widget.*/
- virtual QVariant value() const = 0;
+ virtual TQVariant value() const = 0;
/*! Sets the value shown in the item 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 edited property. */
virtual Property* property() const;
@@ -55,13 +56,13 @@ class KOPROPERTY_EXPORT Widget : public QWidget
virtual void setProperty(Property *property);
/*! Function to draw a property viewer when the item 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();
/*! Sets the widget that will receive focus when the Widget is selected. */
- void setFocusWidget(QWidget*focusProxy);
+ void setFocusWidget(TQWidget*focusProxy);
//! \sa d->leaveTheSpaceForRevertButton description
bool leavesTheSpaceForRevertButton() const;
@@ -92,12 +93,12 @@ class KOPROPERTY_EXPORT Widget : public QWidget
void rejectInput(Widget *widget);
protected:
- void setEditor(QWidget* editor);
+ void setEditor(TQWidget* editor);
/*! Filters some event for main widget, eg Enter or Esc key presses. */
- virtual bool eventFilter(QObject* watched, QEvent* e);
+ virtual bool eventFilter(TQObject* watched, TQEvent* e);
- virtual void resizeEvent(QResizeEvent *e);
+ virtual void resizeEvent(TQResizeEvent *e);
void setLeavesTheSpaceForRevertButton(bool set);
void setHasBorders(bool set);