Ignore:
Timestamp:
Nov 29, 2016 6:08:29 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
ded2ce3
Parents:
adf81b8
git-author:
Piotr Rozyczko <rozyczko@…> (11/29/16 06:04:46)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/29/16 06:08:29)
Message:

Further work on the main QStandardItemModel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py

    r31c5b58 r8548d739  
    275275 
    276276            # This needs to run in the main thread 
    277             reactor.callFromThread(GuiUtils.updateModelItem, self._model_item, variant_item, title) 
     277            reactor.callFromThread(GuiUtils.updateModelItemWithPlot, 
     278                    self._model_item, variant_item, title) 
    278279 
    279280        if self._high_extrapolate: 
     
    297298            variant_item = QtCore.QVariant(high_out_data) 
    298299            # This needs to run in the main thread 
    299             reactor.callFromThread(GuiUtils.updateModelItem, self._model_item, variant_item, title) 
     300            reactor.callFromThread(GuiUtils.updateModelItemWithPlot, 
     301                    self._model_item, variant_item, title) 
    300302 
    301303        item = QtGui.QStandardItem(str(float('%.5g'% volume_fraction))) 
     
    531533 
    532534        # Extract data on 1st child - this is the Data1D/2D component 
    533         data = self._model_item.child(0).data().toPyObject() 
     535        data = GuiUtils.dataFromItem(self._model_item) 
    534536        self.model.item(WIDGETS.W_FILENAME).setData(QtCore.QVariant(self._model_item.text())) 
    535537 
Note: See TracChangeset for help on using the changeset viewer.