diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
commit | 87a016680e3677da3993f333561e79eb0cead7d5 (patch) | |
tree | cbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/conrouter.h | |
parent | 6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff) | |
download | ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip |
TQt4 port ktechlab
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/conrouter.h')
-rw-r--r-- | src/conrouter.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/conrouter.h b/src/conrouter.h index 2a522b7..eae4051 100644 --- a/src/conrouter.h +++ b/src/conrouter.h @@ -13,14 +13,14 @@ #include "cells.h" -#include <qpoint.h> -#include <qvaluelist.h> +#include <tqpoint.h> +#include <tqvaluelist.h> class ICNDocument; class Cell; -typedef QValueList<QPoint> QPointList; -typedef QValueList<QPointList> QPointListList; +typedef TQValueList<TQPoint> TQPointList; +typedef TQValueList<TQPointList> TQPointListList; /** Abstraction for the routing of a connector. @@ -50,11 +50,11 @@ public: * Sets the route to the given canvas points * @param reverse if true, the points in pointList will be reversed */ - void setPoints( const QPointList &pointList, bool reverse = false ); + void setPoints( const TQPointList &pointList, bool reverse = false ); /** * Sets the route to the given route points */ - void setRoutePoints( const QPointList &pointList ); + void setRoutePoints( const TQPointList &pointList ); /** * @returns true if the start or end points differ from that of the current route */ @@ -62,22 +62,22 @@ public: /** * Returns the list of canvas points */ - QPointList pointList( bool reverse ) const; + TQPointList pointList( bool reverse ) const; /** * Returns a pointer to the internall cellPointList */ - QPointList *cellPointList() { return &m_cellPointList; } + TQPointList *cellPointList() { return &m_cellPointList; } /** * This will return two lists of Canvas points from the splitting of the * route at the Canvas point "pos". The internall stored points are not * affected. */ - QPointListList splitPoints( const QPoint &pos ) const; + TQPointListList splitPoints( const TQPoint &pos ) const; /** * This will return a list of Canvas pointLists from the route, divided * into n parts (at n-1 equally spaced places). */ - QPointListList dividePoints( uint n ) const; + TQPointListList dividePoints( uint n ) const; protected: /** @@ -96,7 +96,7 @@ protected: Cells *cellsPtr; TempLabelMap tempLabels; ICNDocument *p_icnDocument; - QPointList m_cellPointList; + TQPointList m_cellPointList; }; #endif |