21 #ifndef CLEARABLELINEEDIT_H 22 #define CLEARABLELINEEDIT_H 26 #include <tulip/tulipconf.h> 28 class TLP_QT_SCOPE ClearableLineEdit :
public QLineEdit {
29 static QPixmap *CLEAR_PIXMAP;
31 bool _clearButtonHovered;
32 static void initPixmap();
36 explicit ClearableLineEdit(QWidget *parent =
nullptr);
39 void paintEvent(QPaintEvent *)
override;
40 void mouseMoveEvent(QMouseEvent *)
override;
41 void mousePressEvent(QMouseEvent *)
override;
44 #endif // CLEARABLELINEEDIT_H