diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-10-08 00:13:25 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-10-08 05:14:53 +0200 |
commit | 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (patch) | |
tree | 770861aa9033e1dc6c5168358194ff85b32dd429 /src/graphedge.h | |
parent | 57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff) | |
download | kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip |
Initial TQt conversion
Diffstat (limited to 'src/graphedge.h')
-rw-r--r-- | src/graphedge.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/graphedge.h b/src/graphedge.h index ce399b3..7b5fc4e 100644 --- a/src/graphedge.h +++ b/src/graphedge.h @@ -28,7 +28,7 @@ #ifndef GRAPHEDGE_H #define GRAPHEDGE_H -#include <qcanvas.h> +#include <ntqcanvas.h> class GraphNode; @@ -53,20 +53,20 @@ struct ArrowInfo * is its head. * @author Elad Lahav */ -class GraphEdge : public QCanvasPolygonalItem +class GraphEdge : public TQCanvasPolygonalItem { public: - GraphEdge(QCanvas*, GraphNode*, GraphNode*); + GraphEdge(TQCanvas*, GraphNode*, GraphNode*); ~GraphEdge(); - void setCallInfo(const QString&, const QString&, const QString&); - void setPoints(const QPointArray&, const ArrowInfo&); - QString getTip() const; + void setCallInfo(const TQString&, const TQString&, const TQString&); + void setPoints(const TQPointArray&, const ArrowInfo&); + TQString getTip() const; /** * @return The coordinates of the convex hull surrounding the edge */ - virtual QPointArray areaPoints() const { return m_arrArea; } + virtual TQPointArray areaPoints() const { return m_arrArea; } /** * @return The head node of the edge @@ -81,12 +81,12 @@ public: /** * @return The bounding rectangle of the edge's head */ - QRect tipRect() const { return m_rcTip; } + TQRect tipRect() const { return m_rcTip; } /** * @return The file path for this call */ - const QString& getFile() const { return m_sFile; } + const TQString& getFile() const { return m_sFile; } /** * @return The line number for this call @@ -96,9 +96,9 @@ public: /** * @return The call's text */ - const QString& getText() const { return m_sText; } + const TQString& getText() const { return m_sText; } - /** Identifies this class among other QCanvasItem classes. */ + /** Identifies this class among other TQCanvasItem classes. */ static int RTTI; /** @@ -107,7 +107,7 @@ public: virtual int rtti() const { return RTTI; } protected: - virtual void drawShape(QPainter&); + virtual void drawShape(TQPainter&); private: /** The edge's starting point. */ @@ -117,25 +117,25 @@ private: GraphNode* m_pTail; /** The points of the polygon part of the edge. */ - QPointArray m_arrPoly; + TQPointArray m_arrPoly; /** Control points for the spline part of the edge. */ - QPointArray m_arrCurve; + TQPointArray m_arrCurve; - QPointArray m_arrArea; + TQPointArray m_arrArea; /** The bounding rectangle of the edge's head, used for displaying the edge's tool-tip. */ - QRect m_rcTip; + TQRect m_rcTip; /** The call's source file. */ - QString m_sFile; + TQString m_sFile; /** The call's line number. */ - QString m_sLine; + TQString m_sLine; /** The call's text. */ - QString m_sText; + TQString m_sText; void makeArrowhead(const ArrowInfo&); }; |