|
|
@ -18,20 +18,20 @@ QT_END_NAMESPACE |
|
|
|
|
|
|
|
|
|
|
|
class LineEdit : public QLineEdit |
|
|
|
class LineEdit : public QLineEdit |
|
|
|
{ |
|
|
|
{ |
|
|
|
Q_OBJECT |
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
LineEdit(QWidget *parent = 0); |
|
|
|
LineEdit(QWidget *parent = 0); |
|
|
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
protected: |
|
|
|
void resizeEvent(QResizeEvent *); |
|
|
|
void resizeEvent(QResizeEvent *); |
|
|
|
|
|
|
|
|
|
|
|
private slots: |
|
|
|
private slots: |
|
|
|
void updateCloseButton(const QString &text); |
|
|
|
void updateCloseButton(const QString &text); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
QToolButton *clearButton; |
|
|
|
QToolButton *clearButton; |
|
|
|
QToolButton *searchButton; |
|
|
|
QToolButton *searchButton; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
#endif // LIENEDIT_H
|
|
|
|
#endif // LIENEDIT_H
|
|
|
|