Rename signal

CURA-6597
This commit is contained in:
Lipu Fei 2019-07-09 11:29:24 +02:00
parent ec82d8f58d
commit 659a276f65

View file

@ -27,15 +27,15 @@ class IntentModel(ListModel):
self._update() self._update()
_intent_category_changed = pyqtSignal() intentCategoryChanged = pyqtSignal()
def setIntentCategory(self, new_category: str) -> None: def setIntentCategory(self, new_category: str) -> None:
if self._intent_category != new_category: if self._intent_category != new_category:
self._intent_category = new_category self._intent_category = new_category
self._intent_category_changed.emit() self.intentCategoryChanged.emit()
self._update() self._update()
@pyqtProperty(str, fset = setIntentCategory, notify = _intent_category_changed) @pyqtProperty(str, fset = setIntentCategory, notify = intentCategoryChanged)
def intentCategory(self) -> str: def intentCategory(self) -> str:
return self._intent_category return self._intent_category