Changes in src/sas/qtgui/Utilities/GuiUtils.py [339e22b:5d28d6b] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/GuiUtils.py
r339e22b r5d28d6b 225 225 # New plot requested from the GUI manager 226 226 # Old "NewPlotEvent" 227 plotRequestedSignal = QtCore.pyqtSignal(list )227 plotRequestedSignal = QtCore.pyqtSignal(list, int) 228 228 229 229 # Plot from file names … … 277 277 # Notify about new categories/models from category manager 278 278 updateModelCategoriesSignal = QtCore.pyqtSignal() 279 280 # Tell the data explorer to switch tabs 281 changeDataExplorerTabSignal = QtCore.pyqtSignal(int) 279 282 280 283 def updateModelItemWithPlot(item, update_data, name=""): … … 288 291 for index in range(item.rowCount()): 289 292 plot_item = item.child(index) 290 if plot_item.isCheckable(): 291 plot_data = plot_item.child(0).data() 292 if plot_data.id is not None and \ 293 (plot_data.name == update_data.name or plot_data.id == update_data.id): 293 if not plot_item.isCheckable(): 294 continue 295 plot_data = plot_item.child(0).data() 296 if plot_data.id is not None and \ 297 plot_data.name == update_data.name: 298 #(plot_data.name == update_data.name or plot_data.id == update_data.id): 294 299 # if plot_data.id is not None and plot_data.id == update_data.id: 295 296 297 298 299 300 301 302 300 # replace data section in item 301 plot_item.child(0).setData(update_data) 302 plot_item.setText(name) 303 # Plot title if any 304 if plot_item.child(1).hasChildren(): 305 plot_item.child(1).child(0).setText("Title: %s"%name) 306 # Force redisplay 307 return 303 308 304 309 # Create the new item
Note: See TracChangeset
for help on using the changeset viewer.