style fixes

This commit is contained in:
Florian Bruhin 2014-04-15 17:21:12 +02:00
parent 88b522fa16
commit dad6451b7e
2 changed files with 7 additions and 5 deletions

View File

@ -115,7 +115,8 @@ class CompletionView(QTreeView):
SettingOptionCompletionModel(sect, self))
for opt in configdata()[sect].keys():
try:
self._completion_models['value_{}_{}'.format(sect,opt)] = (
modelname = 'value_{}_{}'.format(sect, opt)
self._completion_models[modelname] = (
CompletionFilterModel(SettingValueCompletionModel(sect,
opt, self)))
except NoCompletionsError:

View File

@ -36,6 +36,8 @@ class TabWidget(QTabWidget):
# FIXME there is still some ugly 1px white stripe from somewhere if we do
# background-color: grey for QTabBar...
# pylint: disable=unused-argument
STYLESHEET = """
QTabWidget::pane {{
position: absolute;
@ -100,6 +102,5 @@ class TabWidget(QTabWidget):
@pyqtSlot(str, str)
def on_config_changed(self, section, option):
"""Update attributes when config changed."""
# pylint: disable=unused-argument
if section == 'tabbar':
self._init_config()