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 --- kpresenter/KPrRotationDialogImpl.h | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'kpresenter/KPrRotationDialogImpl.h') diff --git a/kpresenter/KPrRotationDialogImpl.h b/kpresenter/KPrRotationDialogImpl.h index 2eb2586b..7741ff76 100644 --- a/kpresenter/KPrRotationDialogImpl.h +++ b/kpresenter/KPrRotationDialogImpl.h @@ -19,13 +19,13 @@ #ifndef __rotationdialogimpl_h__ #define __rotationdialogimpl_h__ -#include +#include #include class KPrTextPreview; class RotationPropertyUI; -class QObject; -class QEvent; +class TQObject; +class TQEvent; class KPrCircleGroup; /** @@ -34,9 +34,10 @@ class KPrCircleGroup; class KPrRotationDialogImpl : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - KPrRotationDialogImpl( QWidget *parent, const char* name = 0 ); + KPrRotationDialogImpl( TQWidget *tqparent, const char* name = 0 ); ~KPrRotationDialogImpl() {} void setAngle( double angle ); @@ -60,18 +61,19 @@ private: * A toggle-button like widget that shows one pixmap when it is checked, * and another when it is unselected. */ -class KPrCircleToggle : public QLabel +class KPrCircleToggle : public TQLabel { Q_OBJECT + TQ_OBJECT public: /** * Constructor. - * @param parent the parent widget, as required by Qt. + * @param tqparent the tqparent widget, as required by TQt. * @param image the named image that we will use. "rotate/" is * prepended and "dn" is appended for the checked state. * @param id the id that will be used in the clicked signal */ - KPrCircleToggle(QWidget *parent, const QString &image, int id); + KPrCircleToggle(TQWidget *tqparent, const TQString &image, int id); /// return the id which is passed in the constructor int id() { return m_id; } @@ -87,11 +89,11 @@ public slots: void setChecked(bool on); protected: - /// overwritten method from QWidget. - void mousePressEvent ( QMouseEvent * e ); + /// overwritten method from TQWidget. + void mousePressEvent ( TQMouseEvent * e ); private: - QPixmap m_on, m_off; + TQPixmap m_on, m_off; bool m_selected; int m_id; }; @@ -99,15 +101,16 @@ private: /** * A button-group equivalent for a set of KPrCircleToggle classes. */ -class KPrCircleGroup : public QFrame +class KPrCircleGroup : public TQFrame { Q_OBJECT + TQ_OBJECT public: /** * Constructor. - * @param parent the parent widget, as required by Qt. + * @param tqparent the tqparent widget, as required by TQt. */ - KPrCircleGroup(QWidget *parent); + KPrCircleGroup(TQWidget *tqparent); /** * Set the angle the group is currently representing. If there is a child button * that registred itself (using add()) with an ID that matches the argument angle @@ -129,7 +132,7 @@ private slots: void selectionChanged(int buttonId); private: - QPtrList m_buttons; + TQPtrList m_buttons; bool noSignals; }; -- cgit v1.2.1