From 8e4aaf1706f85d902b06dffa08ee8d5425ae3f53 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 18 May 2014 00:36:29 +0200 Subject: [PATCH] Whitespace adjustments --- qutebrowser/widgets/statusbar/bar.py | 7 +++---- qutebrowser/widgets/webview.py | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/qutebrowser/widgets/statusbar/bar.py b/qutebrowser/widgets/statusbar/bar.py index e4c88968f..1d1721266 100644 --- a/qutebrowser/widgets/statusbar/bar.py +++ b/qutebrowser/widgets/statusbar/bar.py @@ -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. diff --git a/qutebrowser/widgets/webview.py b/qutebrowser/widgets/webview.py index 45707db98..b188cf0bc 100644 --- a/qutebrowser/widgets/webview.py +++ b/qutebrowser/widgets/webview.py @@ -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.