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/kopainter/koColorSlider.h | 69 ++++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 33 deletions(-) (limited to 'lib/kopainter/koColorSlider.h') diff --git a/lib/kopainter/koColorSlider.h b/lib/kopainter/koColorSlider.h index 5c520ba8a..e556bcf28 100644 --- a/lib/kopainter/koColorSlider.h +++ b/lib/kopainter/koColorSlider.h @@ -20,93 +20,96 @@ #ifndef __ko_ColorSlider_h__ #define __ko_ColorSlider_h__ -#include -#include -#include -#include +#include +#include +#include +#include #include #include class SliderWidget; -class KOPAINTER_EXPORT KoColorFrame : public QFrame +class KOPAINTER_EXPORT KoColorFrame : public TQFrame { Q_OBJECT + TQ_OBJECT public: - KoColorFrame(QWidget *parent = 0L); + KoColorFrame(TQWidget *tqparent = 0L); - const QColor colorAt(const QPoint &p); + const TQColor colorAt(const TQPoint &p); protected: - void drawContents(QPainter *p); - void mousePressEvent(QMouseEvent *e); - void mouseMoveEvent(QMouseEvent *e); - void mouseReleaseEvent(QMouseEvent *e); + void drawContents(TQPainter *p); + void mousePressEvent(TQMouseEvent *e); + void mouseMoveEvent(TQMouseEvent *e); + void mouseReleaseEvent(TQMouseEvent *e); public slots: - void slotSetColor1(const QColor &c); - void slotSetColor2(const QColor &c); + void slotSetColor1(const TQColor &c); + void slotSetColor2(const TQColor &c); signals: - void clicked(const QPoint &p); - void colorSelected(const QColor &c); + void clicked(const TQPoint &p); + void colorSelected(const TQColor &c); protected: - QColor mC1; - QColor mC2; + TQColor mC1; + TQColor mC2; KPixmap mPixmap; - QImage mImage; + TQImage mImage; bool mColorChanged; bool mPixChanged; bool mDragging; }; -class KOPAINTER_EXPORT KoSliderWidget : public QWidget +class KOPAINTER_EXPORT KoSliderWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - KoSliderWidget(QWidget *parent = 0L); + KoSliderWidget(TQWidget *tqparent = 0L); protected: - void mousePressEvent(QMouseEvent *e); - void mouseReleaseEvent(QMouseEvent *e); - void mouseMoveEvent(QMouseEvent *e); - void paintEvent(QPaintEvent *); + void mousePressEvent(TQMouseEvent *e); + void mouseReleaseEvent(TQMouseEvent *e); + void mouseMoveEvent(TQMouseEvent *e); + void paintEvent(TQPaintEvent *); signals: void positionChanged(int); protected: bool mDragging; - QPoint mPos; + TQPoint mPos; }; -class KOPAINTER_EXPORT KoColorSlider : public QWidget +class KOPAINTER_EXPORT KoColorSlider : public TQWidget { Q_OBJECT + TQ_OBJECT public: - KoColorSlider(QWidget *parent = 0L); + KoColorSlider(TQWidget *tqparent = 0L); virtual ~KoColorSlider(); int minValue(); int maxValue(); protected: - void resizeEvent(QResizeEvent *); - void mousePressEvent(QMouseEvent *); + void resizeEvent(TQResizeEvent *); + void mousePressEvent(TQMouseEvent *); public slots: - void slotSetColor1(const QColor &c); - void slotSetColor2(const QColor &c); + void slotSetColor1(const TQColor &c); + void slotSetColor2(const TQColor &c); void slotSetValue(int value); void slotSetRange(int min, int max); protected slots: void slotSliderMoved(int x); - void slotFrameClicked(const QPoint &p); + void slotFrameClicked(const TQPoint &p); signals: - void colorSelected(const QColor &c); + void colorSelected(const TQColor &c); void valueChanged(int value); protected: -- cgit v1.2.3