style fixes
This commit is contained in:
parent
88b522fa16
commit
dad6451b7e
@ -115,9 +115,10 @@ 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)))
|
||||
opt, self)))
|
||||
except NoCompletionsError:
|
||||
pass
|
||||
self._ignore_next = False
|
||||
@ -278,8 +279,8 @@ class CompletionView(QTreeView):
|
||||
return
|
||||
idx = self._next_idx(shift)
|
||||
self.selectionModel().setCurrentIndex(
|
||||
idx, QItemSelectionModel.ClearAndSelect |
|
||||
QItemSelectionModel.Rows )
|
||||
idx, QItemSelectionModel.ClearAndSelect |
|
||||
QItemSelectionModel.Rows)
|
||||
data = self._model.data(idx)
|
||||
if data is not None:
|
||||
self._ignore_next = True
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user