Changeset e958531 in sasview


Ignore:
Timestamp:
Oct 25, 2017 3:26:38 AM (7 years ago)
Author:
Adam Washington <adam.washington@…>
Children:
c57ecca
Parents:
cadd595a
Message:

Remove more hard coding of connections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py

    rcadd595a re958531  
    154154 
    155155    def modelChanged(self, item): 
    156         if item.row() == W.W_QMIN: 
    157             value = float(self.model.item(W.W_QMIN).text()) 
    158             self._canvas.qmin = value 
    159         elif item.row() == W.W_QMAX or item.row() == W.W_QCUTOFF: 
    160             a = float(self.model.item(W.W_QMAX).text()) 
    161             b = float(self.model.item(W.W_QCUTOFF).text()) 
    162             self._canvas.qmax1 = a 
    163             self._canvas.qmax2 = b 
    164         else: 
    165             print("{} Changed".format(item)) 
    166  
    167156        self.mapper.toFirst() 
    168157        self._canvas.drawQSpace() 
Note: See TracChangeset for help on using the changeset viewer.