Changeset fbfc488 in sasview for src/sas/qtgui/Perspectives/Fitting/ViewDelegate.py
- Timestamp:
- Nov 9, 2017 8:43:55 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- d6b8a1d
- Parents:
- 7969b9c
- git-author:
- Piotr Rozyczko <rozyczko@…> (11/03/17 10:58:39)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:43:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/ViewDelegate.py
r7969b9c rfbfc488 4 4 5 5 import sas.qtgui.Utilities.GuiUtils as GuiUtils 6 7 class CommaLessValidator(QtGui.QDoubleValidator): 8 """ 9 Custom double validator which doesn't allow for commas to be used as decimal point 10 """ 11 pass 6 12 7 13 class ModelViewDelegate(QtWidgets.QStyledItemDelegate): … … 44 50 if index.column() in self.fancyColumns(): 45 51 # Units - present in nice HTML 46 #options = QtWidgets.QStyleOptionViewItemV4(option)47 52 options = QtWidgets.QStyleOptionViewItem(option) 48 53 self.initStyleOption(options,index) … … 236 241 def createEditor(self, widget, option, index): 237 242 # Remember the current choice 238 current_text = index.data() .toString()243 current_text = index.data() 239 244 if not index.isValid(): 240 245 return 0
Note: See TracChangeset
for help on using the changeset viewer.