#ifndef TAGSCENE_H #define TAGSCENE_H #include "sqlitebackend.h" #include "tagitem.h" #include #include class TagScene : public QGraphicsScene { Q_OBJECT public: TagScene(SQLiteSaveFile &proj); public slots: void reloadPicture(); void reloadTags(); signals: void tagDoubleClicked(const Tag &tag); protected: void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override; private slots: void tagChanged(TagChange change, const Tag &tag); private: void addTag(const Tag tag); SQLiteSaveFile &proj; QGraphicsPixmapItem *pix_it; QPixmap pix; QMap tags; }; #endif // TAGSCENE_H