def setDataSource(self, data_source): old_ds = self.dataSource() if old_ds is not None: old_ds.environmentChanged.disconnect(self.on_environment_changed) if data_source is not None: data_source.environmentChanged.connect(self.on_environment_changed) TaurusBaseModel.setDataSource(self, data_source)
def setDataSource(self, ms): if self._data_src is not None: self._data_src.macrosUpdated.disconnect( self.macrosUpdated) if ms is not None: ms.macrosUpdated.connect( self.macrosUpdated) TaurusBaseModel.setDataSource(self, ms)
def setDataSource(self, ms): if self._data_src is not None: Qt.QObject.disconnect(self._data_src, Qt.SIGNAL('macrosUpdated'), self.macrosUpdated) if ms is not None: Qt.QObject.connect(ms, Qt.SIGNAL('macrosUpdated'), self.macrosUpdated) TaurusBaseModel.setDataSource(self, ms)
def setDataSource(self, pool): if self._data_src is not None: self._data_src.controllerClassesUpdated.disconnect( self.controllerClassesUpdated) if pool is not None: pool.controllerClassesUpdated.connect( self.controllerClassesUpdated) TaurusBaseModel.setDataSource(self, pool)
def setDataSource(self, data_source): old_ds = self.dataSource() if old_ds is not None: Qt.QObject.disconnect(old_ds, Qt.SIGNAL('environmentChanged'), self.on_environment_changed) if data_source is not None: Qt.QObject.connect(data_source, Qt.SIGNAL('environmentChanged'), self.on_environment_changed) TaurusBaseModel.setDataSource(self, data_source)
def setDataSource(self, pool): if self._data_src is not None: Qt.QObject.disconnect(self._data_src, Qt.SIGNAL('controllerClassesUpdated'), self.controllerClassesUpdated) if pool is not None: Qt.QObject.connect(pool, Qt.SIGNAL('controllerClassesUpdated'), self.controllerClassesUpdated) TaurusBaseModel.setDataSource(self, pool)
def setDataSource(self, data_src): self._dirty = False TaurusBaseModel.setDataSource(self, data_src)
def setDataSource(self, ms): if self._data_src is not None: self._data_src.macrosUpdated.disconnect(self.macrosUpdated) if ms is not None: ms.macrosUpdated.connect(self.macrosUpdated) TaurusBaseModel.setDataSource(self, ms)