From 7034951687dc04a51c38d2296967ea5bc3dfd235 Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Mon, 25 Feb 2013 12:46:28 +0100 Subject: [PATCH] don't use cycleValuesOnKeypress anymore for OccludablePointItem --- sloth/items/items.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sloth/items/items.py b/sloth/items/items.py index 61f8b78..193c945 100644 --- a/sloth/items/items.py +++ b/sloth/items/items.py @@ -100,7 +100,7 @@ class BaseItem(QAbstractGraphicsShapeItem): self._valid = True if len(self.cycleValuesOnKeypress) > 0: - logging.warning("Uing cycleValueOnKeypress is deprecated and will be removed in the future. Set BaseItem.hotkeys instead with cycleValue()") + logging.warning("cycleValueOnKeypress is deprecated and will be removed in the future. Set BaseItem.hotkeys instead with cycleValue()") self.changeColor() @@ -576,8 +576,8 @@ class GroupItem(BaseItem): class OccludablePointItem(PointItem): - cycleValuesOnKeypress = { - 'o': ('occluded', [True, False]) + hotkeys = { + 'o': cycleValue('occluded', [True, False]) } def __init__(self, *args, **kwargs):