diff options
Diffstat (limited to 'lib/koproperty/editors/booledit.h')
-rw-r--r-- | lib/koproperty/editors/booledit.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/lib/koproperty/editors/booledit.h b/lib/koproperty/editors/booledit.h index f9ab371f..0cfbf48e 100644 --- a/lib/koproperty/editors/booledit.h +++ b/lib/koproperty/editors/booledit.h @@ -24,23 +24,24 @@ #include "../widget.h" #include "combobox.h" -#include <qpixmap.h> +#include <tqpixmap.h> -class QToolButton; +class TQToolButton; namespace KoProperty { class KOPROPERTY_EXPORT BoolEdit : public Widget { Q_OBJECT + TQ_OBJECT public: - BoolEdit(Property *property, QWidget *parent=0, const char *name=0); + BoolEdit(Property *property, TQWidget *tqparent=0, const char *name=0); virtual ~BoolEdit(); - virtual QVariant value() const; - virtual void setValue(const QVariant &value, bool emitChange=true); - virtual void drawViewer(QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value); + virtual TQVariant value() const; + virtual void setValue(const TQVariant &value, bool emitChange=true); + virtual void drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value); protected slots: void slotValueChanged(int state); @@ -48,28 +49,29 @@ class KOPROPERTY_EXPORT BoolEdit : public Widget protected: virtual void setReadOnlyInternal(bool readOnly); void setState(int state); - virtual void resizeEvent(QResizeEvent *ev); - virtual bool eventFilter(QObject* watched, QEvent* e); + virtual void resizeEvent(TQResizeEvent *ev); + virtual bool eventFilter(TQObject* watched, TQEvent* e); private: - QToolButton *m_toggle; - QPixmap m_yesIcon, m_noIcon; //!< icons for m_toggle + TQToolButton *m_toggle; + TQPixmap m_yesIcon, m_noIcon; //!< icons for m_toggle }; class KOPROPERTY_EXPORT ThreeStateBoolEdit : public ComboBox { Q_OBJECT + TQ_OBJECT public: - ThreeStateBoolEdit(Property *property, QWidget *parent=0, const char *name=0); + ThreeStateBoolEdit(Property *property, TQWidget *tqparent=0, const char *name=0); virtual ~ThreeStateBoolEdit(); - virtual QVariant value() const; - virtual void setValue(const QVariant &value, bool emitChange=true); + virtual TQVariant value() const; + virtual void setValue(const TQVariant &value, bool emitChange=true); virtual void setProperty(Property *property); - virtual void drawViewer(QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value); - QPixmap m_yesIcon, m_noIcon; //!< icons for m_toggle + virtual void drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value); + TQPixmap m_yesIcon, m_noIcon; //!< icons for m_toggle }; } |