def _updateModelSelection(self): if self._selectionUpdateOverrideFlag: self._selectionUpdateOverrideFlag = False # We still probably need, however, to refresh the model's selection on the Qt side. self._updateViewSelection() else: TableBase._updateModelSelection(self)
def __init__(self, model, view): TableBase.__init__(self, model, view) self.tableDelegate = TableDelegate(self.model) self.view.setItemDelegate(self.tableDelegate) self._updateFontSize() from ..app import APP_INSTANCE APP_INSTANCE.prefsChanged.connect(self.appPrefsChanged)
def __init__(self, app, view): model = app.model.result_table Table.__init__(self, model, view) view.horizontalHeader().setSortIndicator(1, Qt.AscendingOrder) app.prefsChanged.connect(self.appPrefsChanged) app.willSavePrefs.connect(self.appWillSavePrefs)
def __init__(self, model, view): TableBase.__init__(self, model, view) self._selectionUpdateOverrideFlag = False self.tableDelegate = TableDelegate(self.model) self.view.setItemDelegate(self.tableDelegate) from ..app import APP_PREFS self._updateFontSize(prefs=APP_PREFS) APP_PREFS.prefsChanged.connect(self.appPrefsChanged)
def __init__(self, model, view): Table.__init__(self, model, view)
def __init__(self, model, view): Table.__init__(self, model, view) self._setupKeyBindings()