From 2deadc6cfbf71e06908963fb1bae628cfe370f9d Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 16 Aug 2020 17:04:32 +0200 Subject: Basic model/view action works --- tagitem.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tagitem.h') diff --git a/tagitem.h b/tagitem.h index a248243..3863d40 100644 --- a/tagitem.h +++ b/tagitem.h @@ -14,13 +14,14 @@ public: enum { TagItemType = UserType + 1 }; int type() const override { return TagItemType; } - bool isValid() { return valid; } - void tagUpdated(const Tag &tag); - Tag tag() { return m_tag; } + virtual QRectF boundingRect() const override; + virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override; + virtual QPainterPath shape() const override; + protected: QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant &value) override; -- cgit