From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: 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 --- lib/koproperty/editors/booledit.h | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'lib/koproperty/editors/booledit.h') 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 +#include -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 }; } -- cgit v1.2.1