mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
Element editor : add handler for modifie primitives
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4058 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#define QETGRAPHICSHANDLERUTILITY_H
|
||||
|
||||
#include <QRectF>
|
||||
#include <QLineF>
|
||||
|
||||
class QPainter;
|
||||
|
||||
@@ -47,7 +48,9 @@ class QetGraphicsHandlerUtility
|
||||
|
||||
public:
|
||||
static QVector <QPointF> pointsForRect (const QRectF &rect);
|
||||
static QVector <QPointF> pointsForLine (const QLineF &line);
|
||||
static QRectF rectForPosAtIndex (const QRectF &old_rect, const QPointF &pos, int index);
|
||||
static QLineF lineForPosAtIndex (const QLineF &old_line, const QPointF &pos, int index);
|
||||
};
|
||||
|
||||
#endif // QETGRAPHICSHANDLERUTILITY_H
|
||||
|
||||
Reference in New Issue
Block a user