Changeset d6b8a1d in sasview for src/sas/qtgui/Plotting/ColorMap.py


Ignore:
Timestamp:
Nov 9, 2017 8:43:56 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
53c771e
Parents:
fbfc488
git-author:
Piotr Rozyczko <rozyczko@…> (11/07/17 08:29:59)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 08:43:56)
Message:

More Qt5 related fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/ColorMap.py

    r4992ff2 rd6b8a1d  
    1313from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas 
    1414from sas.qtgui.Plotting.PlotterData import Data2D 
    15 from sas.qtgui.Utilities.GuiUtils import formatNumber 
     15from sas.qtgui.Utilities.GuiUtils import formatNumber, DoubleValidator 
    1616from .rangeSlider import RangeSlider 
    1717 
     
    5151 
    5252        # Initialize validators on amplitude textboxes 
    53         validator_min = QtGui.QDoubleValidator(self.txtMinAmplitude) 
     53        validator_min = DoubleValidator(self.txtMinAmplitude) 
    5454        validator_min.setNotation(0) 
    5555        self.txtMinAmplitude.setValidator(validator_min) 
    56         validator_max = QtGui.QDoubleValidator(self.txtMaxAmplitude) 
     56        validator_max = DoubleValidator(self.txtMaxAmplitude) 
    5757        validator_max.setNotation(0) 
    5858        self.txtMaxAmplitude.setValidator(validator_max) 
Note: See TracChangeset for help on using the changeset viewer.