summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/preferenceswindow.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-04-16 14:48:53 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-04-17 12:12:26 -0300
commitdef537bb5a78e046a75a9e13ea75449eec2b34c8 (patch)
treecfa00c026309f47f1ec6bc2e667639a23b20aa96 /src/leap/bitmask/gui/preferenceswindow.py
parentdcfaeea8c892ecb962080a1fbdc456bdfe851eea (diff)
Use Slot decorator instead of SLOT docstring.
Diffstat (limited to 'src/leap/bitmask/gui/preferenceswindow.py')
-rw-r--r--src/leap/bitmask/gui/preferenceswindow.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/leap/bitmask/gui/preferenceswindow.py b/src/leap/bitmask/gui/preferenceswindow.py
index f6bd1ed3..111ec6d2 100644
--- a/src/leap/bitmask/gui/preferenceswindow.py
+++ b/src/leap/bitmask/gui/preferenceswindow.py
@@ -89,9 +89,9 @@ class PreferencesWindow(QtGui.QDialog):
self._select_provider_by_name(domain)
+ @QtCore.Slot()
def _is_logged_in(self):
"""
- SLOT
TRIGGERS:
Signaler.srp_status_logged_in
@@ -123,9 +123,9 @@ class PreferencesWindow(QtGui.QDialog):
self.ui.gbPasswordChange.setEnabled(pw_enabled)
+ @QtCore.Slot()
def _not_logged_in(self):
"""
- SLOT
TRIGGERS:
Signaler.srp_status_not_logged_in
@@ -136,9 +136,9 @@ class PreferencesWindow(QtGui.QDialog):
self._set_password_change_status(msg)
self.ui.gbPasswordChange.setEnabled(False)
+ @QtCore.Slot()
def set_soledad_ready(self):
"""
- SLOT
TRIGGERS:
parent.soledad_ready
@@ -183,9 +183,9 @@ class PreferencesWindow(QtGui.QDialog):
self.ui.leNewPassword2.setEnabled(not disable)
self.ui.pbChangePassword.setEnabled(not disable)
+ @QtCore.Slot()
def _change_password(self):
"""
- SLOT
TRIGGERS:
self.ui.pbChangePassword.clicked
@@ -207,9 +207,9 @@ class PreferencesWindow(QtGui.QDialog):
self._set_changing_password(True)
self._backend.change_password(current_password, new_password)
+ @QtCore.Slot()
def _change_password_ok(self):
"""
- SLOT
TRIGGERS:
self._backend.signaler.srp_password_change_ok
@@ -229,9 +229,9 @@ class PreferencesWindow(QtGui.QDialog):
self._clear_password_inputs()
self._set_changing_password(False)
+ @QtCore.Slot(unicode)
def _change_password_problem(self, msg):
"""
- SLOT
TRIGGERS:
self._backend.signaler.srp_password_change_error
self._backend.signaler.srp_password_change_badpw
@@ -287,9 +287,9 @@ class PreferencesWindow(QtGui.QDialog):
provider_index = self.ui.cbProvidersServices.findText(name)
self.ui.cbProvidersServices.setCurrentIndex(provider_index)
+ @QtCore.Slot(str, int)
def _service_selection_changed(self, service, state):
"""
- SLOT
TRIGGER: service_checkbox.stateChanged
Adds the service to the state if the state is checked, removes
it otherwise
@@ -309,9 +309,9 @@ class PreferencesWindow(QtGui.QDialog):
# We hide the maybe-visible status label after a change
self.ui.lblProvidersServicesStatus.setVisible(False)
+ @QtCore.Slot(str)
def _populate_services(self, domain):
"""
- SLOT
TRIGGERS:
self.ui.cbProvidersServices.currentIndexChanged[unicode]
@@ -368,9 +368,9 @@ class PreferencesWindow(QtGui.QDialog):
logger.error("Something went wrong while trying to "
"load service %s" % (service,))
+ @QtCore.Slot(str)
def _save_enabled_services(self, provider):
"""
- SLOT
TRIGGERS:
self.ui.pbSaveServices.clicked