diff options
author | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-08-17 00:56:17 +0200 |
---|---|---|
committer | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-08-17 00:56:17 +0200 |
commit | c6713d0876ce2d99f912151c9884477606909681 (patch) | |
tree | 07717d3ffb8d78095f83bee5b0779a6bd264149a /tagscene.cpp | |
parent | 2deadc6cfbf71e06908963fb1bae628cfe370f9d (diff) | |
download | numberator-c6713d0876ce2d99f912151c9884477606909681.tar.gz numberator-c6713d0876ce2d99f912151c9884477606909681.tar.bz2 numberator-c6713d0876ce2d99f912151c9884477606909681.zip |
More UI work
Diffstat (limited to 'tagscene.cpp')
-rw-r--r-- | tagscene.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tagscene.cpp b/tagscene.cpp index a6efd17..c5777e0 100644 --- a/tagscene.cpp +++ b/tagscene.cpp @@ -81,6 +81,15 @@ void TagScene::reloadScene() reloadPicture(); /* calls invalidate() for us */ } +void TagScene::selectTag(const Tag &tag) +{ + clearSelection(); + TagItem *it = tags[tag.id]; + if (!it) + return; + it->setSelected(true); +} + void TagScene::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) { QGraphicsItem *it = itemAt(event->scenePos(), QTransform()); |