E5Gui/E5LineEdit.py

changeset 653
0540f3c52b46
parent 643
719db11dd4df
child 791
9ec2ac20e54e
equal deleted inserted replaced
651:e8020b9ac2b9 653:0540f3c52b46
111 Protected method handling a paint event. 111 Protected method handling a paint event.
112 112
113 @param evt reference to the paint event (QPaintEvent) 113 @param evt reference to the paint event (QPaintEvent)
114 """ 114 """
115 QLineEdit.paintEvent(self, evt) 115 QLineEdit.paintEvent(self, evt)
116
116 if not self.text() and \ 117 if not self.text() and \
117 self.__inactiveText and \ 118 self.__inactiveText and \
118 not self.hasFocus(): 119 not self.hasFocus():
119 panel = QStyleOptionFrameV2() 120 panel = QStyleOptionFrameV2()
120 self.initStyleOption(panel) 121 self.initStyleOption(panel)

eric ide

mercurial