Changeset 0849aec in sasview for src/sas/qtgui/Perspectives/Fitting/OptionsWidget.py
- Timestamp:
- Oct 30, 2017 7:50:09 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:
- 304d082
- Parents:
- 99ea1b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/OptionsWidget.py
- Property mode changed from 100755 to 100644
rb0b09b9 r0849aec 3 3 """ 4 4 import numpy as np 5 from PyQt4 import QtGui 6 from PyQt4 import QtCore 5 from PyQt5 import QtCore 6 from PyQt5 import QtGui 7 from PyQt5 import QtWidgets 7 8 8 9 from sas.qtgui.Plotting.PlotterData import Data2D … … 21 22 'LOG_SPACED'] 22 23 23 class DataWidgetMapper(Qt Gui.QDataWidgetMapper):24 class DataWidgetMapper(QtWidgets.QDataWidgetMapper): 24 25 """ 25 26 Custom version of the standard QDataWidgetMapper allowing for proper … … 32 33 super(DataWidgetMapper, self).addMapping(widget, section, propertyName) 33 34 34 if isinstance(widget, Qt Gui.QComboBox):35 if isinstance(widget, QtWidgets.QComboBox): 35 36 delegate = self.itemDelegate() 36 37 widget.currentIndexChanged.connect(lambda: delegate.commitData.emit(widget)) 37 38 38 elif isinstance(widget, Qt Gui.QCheckBox):39 elif isinstance(widget, QtWidgets.QCheckBox): 39 40 delegate = self.itemDelegate() 40 41 widget.stateChanged.connect(lambda: delegate.commitData.emit(widget)) 41 42 42 class OptionsWidget(Qt Gui.QWidget, Ui_tabOptions):43 class OptionsWidget(QtWidgets.QWidget, Ui_tabOptions): 43 44 plot_signal = QtCore.pyqtSignal() 44 45 def __init__(self, parent=None, logic=None): … … 52 53 53 54 # Weight radio box group 54 self.weightingGroup = Qt Gui.QButtonGroup()55 self.weightingGroup = QtWidgets.QButtonGroup() 55 56 self.weighting = 0 56 57 … … 114 115 self.mapper.addMapping(self.txtNpts, MODEL.index('NPTS')) 115 116 self.mapper.addMapping(self.chkLogData, MODEL.index('LOG_SPACED')) 116 self.mapper.toFirst() 117 # FIXME DOESNT WORK WITH QT5 118 #self.mapper.toFirst() 117 119 118 120 def toggleLogData(self, isChecked):
Note: See TracChangeset
for help on using the changeset viewer.