s/leaved/left/g
This commit is contained in:
parent
95691e1e11
commit
5b84848ad9
@ -256,7 +256,7 @@ class QuteBrowser(QApplication):
|
|||||||
|
|
||||||
# status bar
|
# status bar
|
||||||
modemanager.manager.entered.connect(status.on_mode_entered)
|
modemanager.manager.entered.connect(status.on_mode_entered)
|
||||||
modemanager.manager.leaved.connect(status.on_mode_left)
|
modemanager.manager.left.connect(status.on_mode_left)
|
||||||
# FIXME what to do here?
|
# FIXME what to do here?
|
||||||
tabs.keypress.connect(status.keypress)
|
tabs.keypress.connect(status.keypress)
|
||||||
for obj in [kp["normal"], tabs]:
|
for obj in [kp["normal"], tabs]:
|
||||||
|
@ -66,12 +66,12 @@ class ModeManager(QObject):
|
|||||||
Signals:
|
Signals:
|
||||||
entered: Emitted when a mode is entered.
|
entered: Emitted when a mode is entered.
|
||||||
arg: Name of the entered mode.
|
arg: Name of the entered mode.
|
||||||
leaved: Emitted when a mode is leaved.
|
left: Emitted when a mode is left.
|
||||||
arg: Name of the leaved mode.
|
arg: Name of the left mode.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
entered = pyqtSignal(str)
|
entered = pyqtSignal(str)
|
||||||
leaved = pyqtSignal(str)
|
left = pyqtSignal(str)
|
||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
@ -122,13 +122,13 @@ class ModeManager(QObject):
|
|||||||
mode; The name of the mode to leave.
|
mode; The name of the mode to leave.
|
||||||
|
|
||||||
Emit:
|
Emit:
|
||||||
leaved: With the old mode name.
|
left: With the old mode name.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
self._mode_stack.remove(mode)
|
self._mode_stack.remove(mode)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise ValueError("Mode {} not on mode stack!".format(mode))
|
raise ValueError("Mode {} not on mode stack!".format(mode))
|
||||||
self.leaved.emit(mode)
|
self.left.emit(mode)
|
||||||
|
|
||||||
def eventFilter(self, _obj, evt):
|
def eventFilter(self, _obj, evt):
|
||||||
"""Filter all events based on the currently set mode.
|
"""Filter all events based on the currently set mode.
|
||||||
|
Loading…
Reference in New Issue
Block a user