OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lineedit.hpp
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (c) 2007 Trolltech ASA <info@trolltech.com>
4 **
5 ** Use, modification and distribution is allowed without limitation,
6 ** warranty, liability or support of any kind.
7 **
8 ****************************************************************************/
9 
10 #ifndef LINEEDIT_H
11 #define LINEEDIT_H
12 
13 #include <QLineEdit>
14 #include <QStyle>
15 #include <QStylePainter>
16 #include <QToolButton>
17 
18 class QToolButton;
19 
20 class LineEdit : public QLineEdit
21 {
22  Q_OBJECT
23 
25 
26 public:
27  LineEdit(QWidget *parent = 0);
28 
29 protected:
30  void resizeEvent(QResizeEvent *);
31 
32 private slots:
33  void updateClearButton(const QString &text);
34 
35 protected:
36  QToolButton *mClearButton;
37 
38  void setupClearButton();
39 };
40 
41 #endif // LIENEDIT_H
42 
QString mPlaceholderText
Definition: lineedit.hpp:24
Definition: lineedit.hpp:20
void updateClearButton(const QString &text)
Definition: lineedit.cpp:30
void setupClearButton()
Definition: lineedit.cpp:9
LineEdit(QWidget *parent=0)
Definition: lineedit.cpp:3
void resizeEvent(QResizeEvent *)
Definition: lineedit.cpp:22
QToolButton * mClearButton
Definition: lineedit.hpp:36