Helpviewer/SearchWidget.py

changeset 359
679fa2357b0c
parent 13
1af94a91f439
child 376
0c4c359c4870
child 792
a13346916170
equal deleted inserted replaced
357:197abac89822 359:679fa2357b0c
181 """ 181 """
182 le = self.findtextCombo.lineEdit() 182 le = self.findtextCombo.lineEdit()
183 p = le.palette() 183 p = le.palette()
184 if error: 184 if error:
185 p.setBrush(QPalette.Base, QBrush(QColor("#FF6666"))) 185 p.setBrush(QPalette.Base, QBrush(QColor("#FF6666")))
186 p.setBrush(QPalette.Text, QBrush(QColor("#FFFFFF"))) 186 p.setBrush(QPalette.Text, QBrush(QColor("#000000")))
187 else: 187 else:
188 p.setBrush(QPalette.Base, self.__defaultBaseColor) 188 p.setBrush(QPalette.Base, self.__defaultBaseColor)
189 p.setBrush(QPalette.Text, self.__defaultTextColor) 189 p.setBrush(QPalette.Text, self.__defaultTextColor)
190 le.setPalette(p) 190 le.setPalette(p)
191 le.update() 191 le.update()

eric ide

mercurial