Possibilite d'ajouter des champs de texte editables aux elements

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@66 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-02-24 00:26:04 +00:00
parent 73a78a4628
commit d9176b5cbf
6 changed files with 102 additions and 4 deletions

24
elementtextitem.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef ELEMENT_TEXT_ITEM_H
#define ELEMENT_TEXT_ITEM_H
#include <QGraphicsTextItem>
class ElementTextItem : public QGraphicsTextItem {
// constructeurs
public:
ElementTextItem(QGraphicsItem * = 0, QGraphicsScene * = 0);
ElementTextItem(const QString &, QGraphicsItem * = 0, QGraphicsScene * = 0);
// attributs
private:
bool follow_parent_rotations;
// methodes
public:
enum { Type = UserType + 1003 };
virtual int type() const { return Type; }
inline bool followParentRotations() const { return(follow_parent_rotations); }
inline void setFollowParentRotations(bool frp) { follow_parent_rotations = frp; }
void setPos(const QPointF &);
void setPos(qreal, qreal);
QPointF pos() const;
};
#endif