Changeset 7f41584 in sasview
- Timestamp:
- Nov 21, 2018 5:21:11 AM (6 years ago)
- 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:
- ba400d1
- Parents:
- c30822c
- Location:
- src/sas/qtgui/Perspectives/Fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
r65759c7 r7f41584 368 368 cbox = createFixedChoiceComboBox(par, row) 369 369 370 # Apply combobox if required 371 if None not in (view, cbox): 372 # set the min/max cell to be empty 373 item3.setText("") 374 item4.setText("") 375 370 376 # Always add to the model 371 377 if row_num is None: … … 375 381 row_num += 1 376 382 377 # Apply combobox if required 378 if None not in (view, cbox): 383 if cbox is not None: 379 384 view.setIndexWidget(item2.index(), cbox) 380 385 -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
rc4c4957 r7f41584 3083 3083 # cell 3: min value 3084 3084 item3 = QtGui.QStandardItem() 3085 # set the cell to be non-editable 3086 item3.setFlags(item3.flags() ^ QtCore.Qt.ItemIsEditable) 3085 3087 3086 3088 # cell 4: max value 3087 3089 item4 = QtGui.QStandardItem() 3090 # set the cell to be non-editable 3091 item4.setFlags(item4.flags() ^ QtCore.Qt.ItemIsEditable) 3088 3092 3089 3093 # cell 4: SLD button … … 3125 3129 # no info about limits 3126 3130 pass 3131 except OverflowError: 3132 # Try to limit shell_par, if possible 3133 if float(shell_par.limits[1])==np.inf: 3134 shell_max = 9 3135 logging.warning("Limiting shell count to 9.") 3127 3136 except Exception as ex: 3128 3137 logging.error("Badly defined multiplicity: "+ str(ex)) -
src/sas/qtgui/Perspectives/Fitting/ViewDelegate.py
r722b7d6 r7f41584 95 95 # Set some columns uneditable 96 96 return None 97 if index.column() in (self.param_min, self.param_max): 98 # Check if the edit role is set 99 if not (index.flags() & QtCore.Qt.ItemIsEditable): 100 return None 97 101 98 102 return super(ModelViewDelegate, self).createEditor(widget, option, index)
Note: See TracChangeset
for help on using the changeset viewer.