summaryrefslogtreecommitdiff
path: root/tagscene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tagscene.cpp')
-rw-r--r--tagscene.cpp9
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());