Changeset 770c42c in sasview for src/sas/qtgui


Ignore:
Timestamp:
Mar 27, 2019 12:39:44 PM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl
Children:
e900a47, bad4a52
Parents:
460bdf4
Message:

Enabled clickable checkboxes for constraints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/ConstraintWidget.py

    r460bdf4 r770c42c  
    432432        """ 
    433433        item = self.tblConstraints.item(row, column) 
    434         if column != 0: return 
    435         # Update the tabs for fitting list 
    436         constraint = self.available_constraints[row] 
    437         constraint.active = (item.checkState() == QtCore.Qt.Checked) 
     434        if column == 0: 
     435            # Update the tabs for fitting list 
     436            constraint = self.available_constraints[row] 
     437            constraint.active = (item.checkState() == QtCore.Qt.Checked) 
     438            return 
    438439        # Update the constraint formula 
    439440        constraint = self.available_constraints[row] 
     
    772773            item = self.uneditableItem(label) 
    773774            item = QtWidgets.QTableWidgetItem(label) 
    774             item.setFlags(item.flags() ^ QtCore.Qt.ItemIsUserCheckable) 
     775            # Why was this set to non-interactive?? 
     776            #item.setFlags(item.flags() ^ QtCore.Qt.ItemIsUserCheckable) 
    775777            item.setCheckState(QtCore.Qt.Checked) 
    776778            self.tblConstraints.insertRow(pos) 
Note: See TracChangeset for help on using the changeset viewer.