From 398581a50bda44f1b9ddbb31dfc43ea567d0e204 Mon Sep 17 00:00:00 2001 From: Mika Fischer Date: Tue, 28 Jun 2011 18:43:58 +0200 Subject: [PATCH] Remove done TODO, add new one --- sloth/gui/propertyeditor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sloth/gui/propertyeditor.py b/sloth/gui/propertyeditor.py index b93dc26..36c29d6 100644 --- a/sloth/gui/propertyeditor.py +++ b/sloth/gui/propertyeditor.py @@ -91,6 +91,8 @@ class DefaultAttributeHandler(QGroupBox, AbstractAttributeHandler): if isinstance(val, type): self.addInputField(val) elif val == "*": + # TODO: Add all values currently in model for this attribute + # as buttons... self._insertIndex = self._layout.count() else: if val not in self._values: @@ -129,7 +131,6 @@ class DefaultAttributeHandler(QGroupBox, AbstractAttributeHandler): button.setFlat(True) button.setCheckable(True) self._buttons[v] = button - # TODO: Add at proper position if pos == -1: self._layout.addWidget(button) else: