mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-23 15:49:58 +01:00
Lors du deplacement d'un champ de texte rattache a un element, ce dernier est desormais mis en valeur par un halo bleute.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@970 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -87,6 +87,8 @@ class Element : public QObject, public QGraphicsItem {
|
||||
virtual QString name() const = 0;
|
||||
Diagram *diagram() const;
|
||||
|
||||
virtual bool isHighlighted() const;
|
||||
virtual void setHighlighted(bool);
|
||||
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
|
||||
QRectF boundingRect() const;
|
||||
QSize setSize(int, int);
|
||||
@@ -126,7 +128,9 @@ class Element : public QObject, public QGraphicsItem {
|
||||
|
||||
private:
|
||||
bool internal_connections;
|
||||
bool must_highlight_;
|
||||
void drawSelection(QPainter *, const QStyleOptionGraphicsItem *);
|
||||
void drawHighlight(QPainter *, const QStyleOptionGraphicsItem *);
|
||||
void updatePixmap();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user