263 """ |
263 """ |
264 Class implementing a line edit widget showing some inactive text and a |
264 Class implementing a line edit widget showing some inactive text and a |
265 clear button, if it has some contents. |
265 clear button, if it has some contents. |
266 """ |
266 """ |
267 |
267 |
268 def __init__(self, parent=None, placeholderText="", side=EricLineEditSide.RIGHT): |
268 def __init__(self, parent=None, placeholderText=""): |
269 """ |
269 """ |
270 Constructor |
270 Constructor |
271 |
271 |
272 @param parent reference to the parent widget |
272 @param parent reference to the parent widget |
273 @type QWidget |
273 @type QWidget |
274 @param placeholderText text to be shown on inactivity |
274 @param placeholderText text to be shown on inactivity |
275 @type str |
275 @type str |
276 @param side side the clear button should be shown at |
|
277 @type EricLineEditSide |
|
278 """ |
276 """ |
279 super().__init__(parent, placeholderText) |
277 super().__init__(parent, placeholderText) |
280 |
278 |
281 self.setClearButtonEnabled(True) |
279 self.setClearButtonEnabled(True) |