style fixes
This commit is contained in:
parent
88b522fa16
commit
dad6451b7e
@ -115,9 +115,10 @@ class CompletionView(QTreeView):
|
|||||||
SettingOptionCompletionModel(sect, self))
|
SettingOptionCompletionModel(sect, self))
|
||||||
for opt in configdata()[sect].keys():
|
for opt in configdata()[sect].keys():
|
||||||
try:
|
try:
|
||||||
self._completion_models['value_{}_{}'.format(sect,opt)] = (
|
modelname = 'value_{}_{}'.format(sect, opt)
|
||||||
|
self._completion_models[modelname] = (
|
||||||
CompletionFilterModel(SettingValueCompletionModel(sect,
|
CompletionFilterModel(SettingValueCompletionModel(sect,
|
||||||
opt, self)))
|
opt, self)))
|
||||||
except NoCompletionsError:
|
except NoCompletionsError:
|
||||||
pass
|
pass
|
||||||
self._ignore_next = False
|
self._ignore_next = False
|
||||||
@ -278,8 +279,8 @@ class CompletionView(QTreeView):
|
|||||||
return
|
return
|
||||||
idx = self._next_idx(shift)
|
idx = self._next_idx(shift)
|
||||||
self.selectionModel().setCurrentIndex(
|
self.selectionModel().setCurrentIndex(
|
||||||
idx, QItemSelectionModel.ClearAndSelect |
|
idx, QItemSelectionModel.ClearAndSelect |
|
||||||
QItemSelectionModel.Rows )
|
QItemSelectionModel.Rows)
|
||||||
data = self._model.data(idx)
|
data = self._model.data(idx)
|
||||||
if data is not None:
|
if data is not None:
|
||||||
self._ignore_next = True
|
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
|
# FIXME there is still some ugly 1px white stripe from somewhere if we do
|
||||||
# background-color: grey for QTabBar...
|
# background-color: grey for QTabBar...
|
||||||
|
|
||||||
|
# pylint: disable=unused-argument
|
||||||
|
|
||||||
STYLESHEET = """
|
STYLESHEET = """
|
||||||
QTabWidget::pane {{
|
QTabWidget::pane {{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -100,6 +102,5 @@ class TabWidget(QTabWidget):
|
|||||||
@pyqtSlot(str, str)
|
@pyqtSlot(str, str)
|
||||||
def on_config_changed(self, section, option):
|
def on_config_changed(self, section, option):
|
||||||
"""Update attributes when config changed."""
|
"""Update attributes when config changed."""
|
||||||
# pylint: disable=unused-argument
|
|
||||||
if section == 'tabbar':
|
if section == 'tabbar':
|
||||||
self._init_config()
|
self._init_config()
|
||||||
|
Loading…
Reference in New Issue
Block a user