summaryrefslogtreecommitdiffstats
path: root/krita/plugins/tools/tool_star/kis_tool_star.h
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/tools/tool_star/kis_tool_star.h')
-rw-r--r--krita/plugins/tools/tool_star/kis_tool_star.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/krita/plugins/tools/tool_star/kis_tool_star.h b/krita/plugins/tools/tool_star/kis_tool_star.h
index e922aa6c..2637ffd5 100644
--- a/krita/plugins/tools/tool_star/kis_tool_star.h
+++ b/krita/plugins/tools/tool_star/kis_tool_star.h
@@ -34,6 +34,7 @@ class KisToolStar : public KisToolShape {
typedef KisToolShape super;
Q_OBJECT
+ TQ_OBJECT
public:
KisToolStar();
@@ -45,7 +46,7 @@ public:
virtual void update (KisCanvasSubject *subject);
- virtual QWidget* createOptionWidget(QWidget* parent);
+ virtual TQWidget* createOptionWidget(TQWidget* tqparent);
//
// KisToolPaint interface
@@ -53,28 +54,28 @@ public:
virtual void setup(KActionCollection *collection);
virtual enumToolType toolType() { return TOOL_SHAPE; }
- virtual Q_UINT32 priority() { return 6; }
+ virtual TQ_UINT32 priority() { return 6; }
virtual void buttonPress(KisButtonPressEvent *event);
virtual void move(KisMoveEvent *event);
virtual void buttonRelease(KisButtonReleaseEvent *event);
protected:
virtual void draw(const KisPoint& start, const KisPoint& stop);
- //virtual void draw(KisPainter *gc, const QRect& rc);
+ //virtual void draw(KisPainter *gc, const TQRect& rc);
protected:
int m_lineThickness;
KisPoint m_dragStart;
KisPoint m_dragEnd;
- QRect m_final_lines;
+ TQRect m_final_lines;
bool m_dragging;
KisImageSP m_currentImage;
private:
vKisPoint starCoordinates(int N, double mx, double my, double x, double y);
- Q_INT32 m_innerOuterRatio;
- Q_INT32 m_vertices;
+ TQ_INT32 m_innerOuterRatio;
+ TQ_INT32 m_vertices;
WdgToolStar* m_optWidget;
};
@@ -93,7 +94,7 @@ public:
t->setup(ac);
return t;
}
- virtual KisID id() { return KisID("starshape", i18n("Star Tool")); }
+ virtual KisID id() { return KisID("startqshape", i18n("Star Tool")); }
};