Ignore:
Timestamp:
Nov 16, 2018 4:44:40 AM (5 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:
64b9e61
Parents:
ecc5d043
Message:

Added tooltip on COnstraints table.
Added "validate" parameter to Constraint, allowing for looser validation
of complex, multi-fitpage setups.

File:
1 edited

Legend:

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

    recc5d043 r09e0c32  
    7979        self.tblConstraints.horizontalHeader().setSectionResizeMode(QtWidgets.QHeaderView.Stretch) 
    8080        self.tblConstraints.setEnabled(False) 
     81        header = self.tblConstraints.horizontalHeaderItem(0) 
     82        header.setToolTip("Double click to edit.") 
    8183 
    8284        self.tblConstraints.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) 
     
    307309        # No check on function here - trust the user (R) 
    308310        if function != constraint.func: 
    309             #from sas.sascalc.fit.expression import compile_constraints 
     311            # This becomes rather difficult to validate now. 
     312            # Turn off validation for Edit Constraint 
    310313            constraint.func = function 
     314            constraint.validate = False 
    311315 
    312316    def onTabCellEntered(self, row, column): 
Note: See TracChangeset for help on using the changeset viewer.