From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kolf/slope.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'kolf/slope.h') diff --git a/kolf/slope.h b/kolf/slope.h index d638354f..1bca5e5e 100644 --- a/kolf/slope.h +++ b/kolf/slope.h @@ -11,10 +11,10 @@ class SlopeConfig : public Config Q_OBJECT public: - SlopeConfig(Slope *slope, QWidget *parent); + SlopeConfig(Slope *slope, TQWidget *parent); private slots: - void setGradient(const QString &text); + void setGradient(const TQString &text); void setReversed(bool); void setStuckOnGround(bool); void gradeChanged(double); @@ -23,10 +23,10 @@ private: Slope *slope; }; -class Slope : public QCanvasRectangle, public CanvasItem, public RectItem +class Slope : public TQCanvasRectangle, public CanvasItem, public RectItem { public: - Slope(QRect rect, QCanvas *canvas); + Slope(TQRect rect, TQCanvas *canvas); virtual void aboutToDie(); virtual int rtti() const { return 1031; } @@ -34,22 +34,22 @@ public: virtual void hideInfo(); virtual void editModeChanged(bool changed); virtual bool canBeMovedByOthers() const { return !stuckOnGround; } - virtual QPtrList moveableItems() const; - virtual Config *config(QWidget *parent) { return new SlopeConfig(this, parent); } + virtual TQPtrList moveableItems() const; + virtual Config *config(TQWidget *parent) { return new SlopeConfig(this, parent); } void setSize(int, int); virtual void newSize(int width, int height); virtual void moveBy(double dx, double dy); - virtual void draw(QPainter &painter); - virtual QPointArray areaPoints() const; + virtual void draw(TQPainter &painter); + virtual TQPointArray areaPoints() const; - void setGradient(QString text); + void setGradient(TQString text); KImageEffect::GradientType curType() const { return type; } void setGrade(double grade); double curGrade() const { return grade; } - void setColor(QColor color) { this->color = color; updatePixmap(); } + void setColor(TQColor color) { this->color = color; updatePixmap(); } void setReversed(bool reversed) { this->reversed = reversed; updatePixmap(); } bool isReversed() const { return reversed; } @@ -62,10 +62,10 @@ public: virtual bool collision(Ball *ball, long int id); virtual bool terrainCollisions() const; - QMap gradientI18nKeys; - QMap gradientKeys; + TQMap gradientI18nKeys; + TQMap gradientKeys; - virtual void updateZ(QCanvasRectangle *vStrut = 0); + virtual void updateZ(TQCanvasRectangle *vStrut = 0); void moveArrow(); @@ -75,16 +75,16 @@ private: bool showingInfo; double grade; bool reversed; - QColor color; - QPixmap pixmap; + TQColor color; + TQPixmap pixmap; void updatePixmap(); bool stuckOnGround; - QPixmap grass; + TQPixmap grass; void clearArrows(); - QPtrList arrows; - QCanvasText *text; + TQPtrList arrows; + TQCanvasText *text; RectPoint *point; }; @@ -92,7 +92,7 @@ class SlopeObj : public Object { public: SlopeObj() { m_name = i18n("Slope"); m__name = "slope"; } - virtual QCanvasItem *newObject(QCanvas *canvas) { return new Slope(QRect(0, 0, 40, 40), canvas); } + virtual TQCanvasItem *newObject(TQCanvas *canvas) { return new Slope(TQRect(0, 0, 40, 40), canvas); } }; #endif -- cgit v1.2.1