Changeset 4992ff2 in sasview for src/sas/qtgui/Calculators/DensityPanel.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/Calculators/DensityPanel.py
- Property mode changed from 100755 to 100644
rb3e8629 r4992ff2 2 2 import logging 3 3 import functools 4 from PyQt4 import QtGui, QtCore 4 from PyQt5 import QtCore 5 from PyQt5 import QtGui 6 from PyQt5 import QtWidgets 5 7 6 8 from periodictable import formula as Formula … … 39 41 40 42 41 class DensityPanel(Qt Gui.QDialog):43 class DensityPanel(QtWidgets.QDialog): 42 44 43 45 def __init__(self, parent=None): … … 68 70 self.ui.editMassDensity.textEdited.connect(functools.partial(self.setMode, MODES.DENSITY_TO_VOLUME)) 69 71 70 self.ui.buttonBox.button(Qt Gui.QDialogButtonBox.Reset).clicked.connect(self.modelReset)71 self.ui.buttonBox.button(Qt Gui.QDialogButtonBox.Help).clicked.connect(self.displayHelp)72 self.ui.buttonBox.button(QtWidgets.QDialogButtonBox.Reset).clicked.connect(self.modelReset) 73 self.ui.buttonBox.button(QtWidgets.QDialogButtonBox.Help).clicked.connect(self.displayHelp) 72 74 73 75 def setupModel(self): … … 83 85 84 86 def setupMapper(self): 85 self.mapper = Qt Gui.QDataWidgetMapper(self)87 self.mapper = QtWidgets.QDataWidgetMapper(self) 86 88 self.mapper.setModel(self.model) 87 89 self.mapper.setOrientation(QtCore.Qt.Vertical) … … 92 94 self.mapper.addMapping(self.ui.editMassDensity , MODEL.MASS_DENSITY) 93 95 94 self.mapper.toFirst() 96 # FIXME DOESNT WORK WITH QT5 97 #self.mapper.toFirst() 95 98 96 99 def dataChanged(self, top, bottom):
Note: See TracChangeset
for help on using the changeset viewer.