diff options
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()); |