diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/koproperty/editors/booledit.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 }; } |