summaryrefslogtreecommitdiffstats
path: root/kolf/slope.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /kolf/slope.h
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolf/slope.h')
-rw-r--r--kolf/slope.h38
1 files changed, 19 insertions, 19 deletions
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<QCanvasItem> moveableItems() const;
- virtual Config *config(QWidget *parent) { return new SlopeConfig(this, parent); }
+ virtual TQPtrList<TQCanvasItem> 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<KImageEffect::GradientType, QString> gradientI18nKeys;
- QMap<KImageEffect::GradientType, QString> gradientKeys;
+ TQMap<KImageEffect::GradientType, TQString> gradientI18nKeys;
+ TQMap<KImageEffect::GradientType, TQString> 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<Arrow> arrows;
- QCanvasText *text;
+ TQPtrList<Arrow> 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