Whitespace adjustments

This commit is contained in:
Florian Bruhin 2014-05-18 00:36:29 +02:00
parent d2049eb462
commit 8e4aaf1706
2 changed files with 6 additions and 8 deletions

View File

@ -116,8 +116,7 @@ class StatusBar(QWidget):
self._stack.addWidget(self.txt)
self._text_queue = deque()
self._text_pop_timer = QTimer()
self._text_pop_timer.setInterval(
config.get('ui', 'message-timeout'))
self._text_pop_timer.setInterval(config.get('ui', 'message-timeout'))
self._text_pop_timer.timeout.connect(self._pop_text)
self.cmd.show_cmd.connect(self._show_cmd_widget)
@ -272,8 +271,8 @@ class StatusBar(QWidget):
def on_config_changed(self, section, option):
"""Update message timeout when config changed."""
if section == 'ui' and option == 'message-timeout':
self._text_pop_timer.setInterval(
config.get('ui', 'message-timeout'))
self._text_pop_timer.setInterval(config.get('ui',
'message-timeout'))
def resizeEvent(self, e):
"""Extend resizeEvent of QWidget to emit a resized signal afterwards.

View File

@ -154,10 +154,9 @@ class WebView(QWebView):
def _init_neighborlist(self):
"""Initialize the _zoom neighborlist."""
self._zoom = NeighborList(
config.get('ui', 'zoom-levels'),
default=config.get('ui', 'default-zoom'),
mode=NeighborList.Modes.block)
self._zoom = NeighborList(config.get('ui', 'zoom-levels'),
default=config.get('ui', 'default-zoom'),
mode=NeighborList.Modes.block)
def _on_destroyed(self, sender):
"""Called when a subsystem has been destroyed during shutdown.