Fix long lines

This commit is contained in:
Florian Bruhin 2014-01-28 17:33:48 +01:00
parent eeb33a3e10
commit 80feee323f
4 changed files with 10 additions and 5 deletions

View File

@ -63,7 +63,8 @@ class CommandParser(QObject):
try:
self.cmd.check(self.args)
except ArgumentCountError:
self.error.emit("{}: invalid argument count".format(self.cmd.mainname))
self.error.emit("{}: invalid argument count".format(
self.cmd.mainname))
raise
def _run(self, count=None):

View File

@ -47,7 +47,8 @@ class TabbedBrowser(TabWidget):
lambda *args: self._filter_signals(self.cur_load_started, *args))
# FIXME does QtWebView even do something sensible with that signal?
tab.statusBarMessage.connect(
lambda *args: self._filter_signals(self.cur_statusbar_message, *args))
lambda *args: self._filter_signals(self.cur_statusbar_message,
*args))
tab.scroll_pos_changed.connect(self._scroll_pos_changed_handler)
# FIXME should we really bind this to loadStarted? Sometimes the URL
# isn't set correctly at this point, e.g. when doing

View File

@ -29,11 +29,13 @@ class CompletionView(QTreeView):
{color[completion.category.fg]}
{color[completion.category.bg]}
border-top: 1px solid {color[completion.category.border.top]};
border-bottom: 1px solid {color[completion.category.border.bottom]};
border-bottom: 1px solid
{color[completion.category.border.bottom]};
}}
QTreeView::item:selected {{
border-top: 1px solid {color[completion.item.selected.border.top]};
border-bottom: 1px solid {color[completion.item.selected.border.bottom]};
border-bottom: 1px solid
{color[completion.item.selected.border.bottom]};
{color[completion.item.selected.bg]}
{color[completion.item.selected.fg]}
}}

View File

@ -34,7 +34,8 @@ class MainWindow(QMainWindow):
self.status.resized.connect(self.completion.resize_to_bar)
self.tabs.cur_progress.connect(self.status.prog.set_progress)
self.tabs.cur_load_finished.connect(self.status.prog.load_finished)
self.tabs.cur_load_started.connect(lambda: self.status.prog.set_progress(0))
self.tabs.cur_load_started.connect(lambda:
self.status.prog.set_progress(0))
self.tabs.cur_scroll_perc_changed.connect(self.status.txt.set_perc)
self.tabs.cur_statusbar_message.connect(self.status.txt.set_text)
self.status.cmd.esc_pressed.connect(self.tabs.setFocus)