blob: 006fffdd89d2264d3b413fc2204eccc2d95185ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#ifndef TAGSCENE_H
#define TAGSCENE_H
#include "sqlitebackend.h"
#include "tagitem.h"
#include <QGraphicsPixmapItem>
#include <QGraphicsScene>
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<long long int, TagItem*> tags;
};
#endif // TAGSCENE_H
|