Commit 33dbd713 authored by Dan Pascu's avatar Dan Pascu

Changed method order in the ContactGroup class

parent 515eae37
...@@ -33,9 +33,8 @@ class ContactGroup(object): ...@@ -33,9 +33,8 @@ class ContactGroup(object):
def __unicode__(self): def __unicode__(self):
return self.name return self.name
@property def _name_changed(self):
def collapsed(self): self.name = self.widget.name_editor.text()
return bool(self.widget.collapse_button.isChecked())
def _get_widget(self): def _get_widget(self):
return self.__dict__['widget'] return self.__dict__['widget']
...@@ -49,8 +48,9 @@ class ContactGroup(object): ...@@ -49,8 +48,9 @@ class ContactGroup(object):
widget = property(_get_widget, _set_widget) widget = property(_get_widget, _set_widget)
del _get_widget, _set_widget del _get_widget, _set_widget
def _name_changed(self): @property
self.name = self.widget.name_editor.text() def collapsed(self):
return bool(self.widget.collapse_button.isChecked())
def collapse(self): def collapse(self):
if not self.widget.collapse_button.isChecked(): if not self.widget.collapse_button.isChecked():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment