E5Gui/E5MapWidget.py

changeset 3591
2f2a4a76dd22
parent 3484
645c12de6b0c
child 3656
441956d8fce5
child 3892
729a1dcd7e91
equal deleted inserted replaced
3590:5280e37405b8 3591:2f2a4a76dd22
38 if parent is not None and isinstance(parent, QAbstractScrollArea): 38 if parent is not None and isinstance(parent, QAbstractScrollArea):
39 self.setMaster(parent) 39 self.setMaster(parent)
40 40
41 def __setSliderColor(self): 41 def __setSliderColor(self):
42 """ 42 """
43 Set the slider color depending upon the background color. 43 Private method to set the slider color depending upon the background
44 color.
44 """ 45 """
45 if self.__backgroundColor.toHsv().value() < 128: 46 if self.__backgroundColor.toHsv().value() < 128:
46 # dark background, use white slider 47 # dark background, use white slider
47 self.__sliderColor = Qt.white 48 self.__sliderColor = Qt.white
48 else: 49 else:

eric ide

mercurial