Changeset 4992ff2 in sasview for src/sas/qtgui/Perspectives/Fitting/SmearingWidget.py
- Timestamp:
- Nov 9, 2017 8:43:07 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:
- 7969b9c
- Parents:
- 7fb471d
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/30/17 07:50:09)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:43:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/SmearingWidget.py
- Property mode changed from 100755 to 100644
rb3e8629 r4992ff2 2 2 Widget/logic for smearing data. 3 3 """ 4 from PyQt4 import QtGui 5 from PyQt4 import QtCore 4 from PyQt5 import QtCore 5 from PyQt5 import QtGui 6 from PyQt5 import QtWidgets 6 7 7 8 from sas.qtgui.Plotting.PlotterData import Data1D … … 11 12 from sas.qtgui.Perspectives.Fitting.UI.SmearingWidgetUI import Ui_SmearingWidgetUI 12 13 13 class DataWidgetMapper(Qt Gui.QDataWidgetMapper):14 class DataWidgetMapper(QtWidgets.QDataWidgetMapper): 14 15 """ 15 16 Custom version of the standard QDataWidgetMapper allowing for proper … … 22 23 super(DataWidgetMapper, self).addMapping(widget, section, propertyName) 23 24 24 if isinstance(widget, Qt Gui.QComboBox):25 if isinstance(widget, QtWidgets.QComboBox): 25 26 delegate = self.itemDelegate() 26 27 widget.currentIndexChanged.connect(lambda: delegate.commitData.emit(widget)) … … 35 36 'ACCURACY'] 36 37 37 class SmearingWidget(Qt Gui.QWidget, Ui_SmearingWidgetUI):38 class SmearingWidget(QtWidgets.QWidget, Ui_SmearingWidgetUI): 38 39 def __init__(self, parent=None): 39 40 super(SmearingWidget, self).__init__() … … 83 84 self.mapper.addMapping(self.cbSmearing, MODEL.index('SMEARING')) 84 85 self.mapper.addMapping(self.cbAccuracy, MODEL.index('ACCURACY')) 85 self.mapper.toFirst() 86 87 # FIXME DOESNT WORK WITH QT5 88 #self.mapper.toFirst() 86 89 87 90 def updateSmearing(self, data=None):
Note: See TracChangeset
for help on using the changeset viewer.