Changeset f0bb711 in sasview for src/sas/qtgui/MainWindow
- Timestamp:
- Oct 19, 2017 8:25:24 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 0c468bf
- Parents:
- d5c5d3d
- Location:
- src/sas/qtgui/MainWindow
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
rd5c5d3d rf0bb711 281 281 # Use 'while' so the row count is forced at every iteration 282 282 deleted_indices = [] 283 # deleted_names = [] 283 284 while ind < self.model.rowCount(): 284 285 ind += 1 285 286 item = self.model.item(ind) 287 286 288 if item and item.isCheckable() and item.checkState() == QtCore.Qt.Checked: 287 289 # Delete these rows from the model 290 # deleted_names.append(self.model.item(ind).text()) 288 291 deleted_indices.append(item) 292 289 293 self.model.removeRow(ind) 290 294 # Decrement index since we just deleted it … … 293 297 # Let others know we deleted data 294 298 self.communicator.dataDeletedSignal.emit(deleted_indices) 299 300 # update stored_data 301 # self.manager.delete_by_name(deleted_names) 302 295 303 296 304 def deleteTheory(self, event): -
src/sas/qtgui/MainWindow/DataManager.py
rdc5ef15 rf0bb711 275 275 del self.stored_data[id] 276 276 277 278 277 def get_by_name(self, name_list=None): 279 278 """ -
src/sas/qtgui/MainWindow/GuiManager.py
rd5c5d3d rf0bb711 534 534 """ 535 535 """ 536 self.communicate.sendDataToPanel .emit(self._data_manager.get_all_data())536 self.communicate.sendDataToPanelSignal.emit(self._data_manager.get_all_data()) 537 537 538 538 self.DataOperation.show()
Note: See TracChangeset
for help on using the changeset viewer.