From 0afe9ca6bf53da111e445d2aea7cfc94e7e3c601 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 9 Aug 2020 17:12:14 +0200 Subject: db backend: mostly feature-complete --- tagscene.h | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'tagscene.h') diff --git a/tagscene.h b/tagscene.h index 823609e..006fffd 100644 --- a/tagscene.h +++ b/tagscene.h @@ -1,14 +1,42 @@ #ifndef TAGSCENE_H #define TAGSCENE_H +#include "sqlitebackend.h" +#include "tagitem.h" + +#include #include class TagScene : public QGraphicsScene { + Q_OBJECT + public: - TagScene(); + 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 -- cgit