Changeset 63467b6 in sasview for src/sas/qtgui/Plotting/Slicers


Ignore:
Timestamp:
Sep 27, 2018 4:20:24 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
4f8c17f
Parents:
dce68f6
Message:

Improved handling of 2d plot children. Refactored model tree search.

Location:
src/sas/qtgui/Plotting/Slicers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Slicers/AnnulusSlicer.py

    re20870bc r63467b6  
    143143        new_plot.xtransform = "x" 
    144144        new_plot.ytransform = "y" 
    145         GuiUtils.updateModelItemWithPlot(self._item, new_plot, new_plot.id) 
     145        item = self._item 
     146        if self._item.parent() is not None: 
     147            item = self._item.parent() 
     148        GuiUtils.updateModelItemWithPlot(item, new_plot, new_plot.id) 
    146149        self.base.manager.communicator.plotUpdateSignal.emit([new_plot]) 
    147150 
  • src/sas/qtgui/Plotting/Slicers/BoxSlicer.py

    re20870bc r63467b6  
    188188        new_plot.id = (self.averager.__name__) + self.base.data.name 
    189189        new_plot.is_data = True 
    190         GuiUtils.updateModelItemWithPlot(self._item, new_plot, new_plot.id) 
     190        if self._item.parent() is not None: 
     191            item = self._item.parent() 
     192        GuiUtils.updateModelItemWithPlot(item, new_plot, new_plot.id) 
    191193 
    192194        if self.update_model: 
  • src/sas/qtgui/Plotting/Slicers/SectorSlicer.py

    re20870bc r63467b6  
    167167        new_plot.id = "SectorQ" + self.base.data.name 
    168168        new_plot.is_data = True 
    169         GuiUtils.updateModelItemWithPlot(self._item, new_plot, new_plot.id) 
     169        if self._item.parent() is not None: 
     170            item = self._item.parent() 
     171        GuiUtils.updateModelItemWithPlot(item, new_plot, new_plot.id) 
    170172 
    171173        self.base.manager.communicator.plotUpdateSignal.emit([new_plot]) 
Note: See TracChangeset for help on using the changeset viewer.