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) |