2011-04-07 22:04:09 +00:00
|
|
|
/****************************************************************************
|
|
|
|
**
|
|
|
|
** Copyright (c) 2007 Trolltech ASA <info@trolltech.com>
|
|
|
|
**
|
|
|
|
** Use, modification and distribution is allowed without limitation,
|
|
|
|
** warranty, liability or support of any kind.
|
|
|
|
**
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef LINEEDIT_H
|
|
|
|
#define LINEEDIT_H
|
|
|
|
|
|
|
|
#include <QLineEdit>
|
|
|
|
|
|
|
|
class QToolButton;
|
|
|
|
|
2013-09-22 04:06:29 +00:00
|
|
|
namespace ContentSelectorView
|
2011-04-07 22:04:09 +00:00
|
|
|
{
|
2013-08-18 20:11:29 +00:00
|
|
|
class LineEdit : public QLineEdit
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2011-04-07 22:04:09 +00:00
|
|
|
|
2013-08-20 13:16:56 +00:00
|
|
|
QString mPlaceholderText;
|
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
public:
|
|
|
|
LineEdit(QWidget *parent = 0);
|
2011-04-07 22:04:09 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
protected:
|
|
|
|
void resizeEvent(QResizeEvent *);
|
2011-04-07 22:04:09 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
private slots:
|
|
|
|
void updateClearButton(const QString &text);
|
2011-04-07 22:04:09 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
private:
|
|
|
|
QToolButton *mClearButton;
|
|
|
|
};
|
|
|
|
}
|
2011-04-07 22:04:09 +00:00
|
|
|
#endif // LIENEDIT_H
|
|
|
|
|