mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-02 19:39:58 +02:00
Widget used to edit text item group can edit the pos of the group.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5408 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -50,6 +50,8 @@ class ElementTextItemGroup : public QObject, public QGraphicsItemGroup
|
||||
void alignmentChanged(Qt::Alignment);
|
||||
void nameChanged(QString);
|
||||
void holdToBottomPageChanged(bool);
|
||||
void xChanged();
|
||||
void yChanged();
|
||||
|
||||
public:
|
||||
ElementTextItemGroup(const QString &name, Element *parent);
|
||||
@@ -78,6 +80,8 @@ class ElementTextItemGroup : public QObject, public QGraphicsItemGroup
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
||||
QRectF boundingRect() const override;
|
||||
void setRotation(qreal angle);
|
||||
void setPos(const QPointF &pos);
|
||||
void setPos(qreal x, qreal y);
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
|
||||
|
||||
Reference in New Issue
Block a user