From 5e1e1ffd38b23b621bf24f99dd4183eb2be0111a Mon Sep 17 00:00:00 2001 From: Mika Fischer Date: Mon, 10 Mar 2014 17:29:51 +0100 Subject: [PATCH] Add Tooltips with names of facial landmarks --- sloth/items/items.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sloth/items/items.py b/sloth/items/items.py index f04028a..d523b7e 100644 --- a/sloth/items/items.py +++ b/sloth/items/items.py @@ -741,6 +741,8 @@ class NPointFaceItem(GroupItem): if prefix + 'x' in self._model_item and \ prefix + 'y' in self._model_item: child = callable_(self._model_item, prefix, self) + if hasattr(child, 'setToolTip'): + child.setToolTip(prefix) self._children.append(child) def boundingRect(self):