22 #ifndef CLEARABLELINEEDIT_H
23 #define CLEARABLELINEEDIT_H
27 #include <tulip/tulipconf.h>
30 class TLP_QT_SCOPE ClearableLineEdit :
public QLineEdit {
31 static QPixmap* CLEAR_PIXMAP;
33 bool _clearButtonHovered;
34 static void initPixmap();
37 explicit ClearableLineEdit(QWidget *parent = NULL);
40 void paintEvent(QPaintEvent *);
41 void mouseMoveEvent(QMouseEvent *);
42 void mousePressEvent(QMouseEvent *);
47 #endif // CLEARABLELINEEDIT_H