Changeset d4dac80 in sasview for src/sas/qtgui/Utilities/GuiUtils.py


Ignore:
Timestamp:
Apr 25, 2018 4:59:33 AM (6 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:
017b285
Parents:
93c79b5
git-author:
Piotr Rozyczko <rozyczko@…> (03/22/18 14:46:19)
git-committer:
Piotr Rozyczko <rozyczko@…> (04/25/18 04:59:33)
Message:

Merge branch 'ESS_GUI' into ESS_GUI_better_batch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/GuiUtils.py

    r27689dc rd4dac80  
    245245    customModelDirectoryChanged = QtCore.pyqtSignal() 
    246246 
     247    # Notify the gui manager about new data to be added to the grid view 
     248    sendDataToGridSignal = QtCore.pyqtSignal(list) 
     249 
     250 
    247251def updateModelItemWithPlot(item, update_data, name=""): 
    248252    """ 
     
    333337    """ 
    334338    assert isinstance(item, QtGui.QStandardItem) 
    335     #assert isinstance(update_data, list) 
    336339 
    337340    # Add the actual Data1D/Data2D object 
     
    465468 
    466469    return info_item 
     470 
     471def dataFromItem(item): 
     472    """ 
     473    Retrieve Data1D/2D component from QStandardItem. 
     474    The assumption - data stored in SasView standard, in child 0 
     475    """ 
     476    return item.child(0).data() 
    467477 
    468478def openLink(url): 
     
    813823    return (xLabel, yLabel, xscale, yscale) 
    814824 
    815 def dataFromItem(item): 
    816     """ 
    817     Retrieve Data1D/2D component from QStandardItem. 
    818     The assumption - data stored in SasView standard, in child 0 
    819     """ 
    820     return item.child(0).data() 
    821  
    822825def formatNumber(value, high=False): 
    823826    """ 
Note: See TracChangeset for help on using the changeset viewer.