Changeset c7e73e7 in sasview


Ignore:
Timestamp:
Mar 28, 2019 11:48:19 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_opencl
Children:
c02721c4
Parents:
73fb503
Message:

Disable checkboxes by unfittable parameter rows. Trac #1250

File:
1 edited

Legend:

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

    rf5e2a10a rc7e73e7  
    166166            if cbox: 
    167167                view.setIndexWidget(item2.index(), cbox) 
     168 
    168169        rows.append(row) 
    169170 
     
    202203        item1 = QtGui.QStandardItem(item_name) 
    203204        item1.setData(param.name, QtCore.Qt.UserRole) 
    204         item1.setCheckable(True) 
     205        item1.setCheckable(False) 
    205206        item1.setEditable(False) 
    206207 
     
    219220        # Append to the model and use the combobox, if required 
    220221        if None not in (model, view): 
     222 
    221223            if row_num is None: 
    222224                model.appendRow(row) 
     
    224226                model.insertRow(row_num, row) 
    225227                row_num += 1 
    226  
    227228            if cbox: 
     229                item1.setCheckable(False) 
     230                item3.setText("") 
     231                item4.setText("") 
     232                item3.setEditable(False) 
     233                item4.setEditable(False) 
    228234                view.setIndexWidget(item2.index(), cbox) 
     235            else: 
     236                item1.setCheckable(True) 
    229237 
    230238        rows.append(row) 
Note: See TracChangeset for help on using the changeset viewer.