Clementine-audio-player-Mac.../src/lineedit.h

23 lines
377 B
C
Raw Normal View History

2010-01-16 17:12:47 +01:00
#ifndef LINEEDIT_H
#define LINEEDIT_H
#include <QLineEdit>
class LineEdit : public QLineEdit {
Q_OBJECT
Q_PROPERTY(QString hint READ GetHint WRITE SetHint);
public:
LineEdit(QWidget* parent = 0);
QString GetHint() const { return hint_; }
void SetHint(const QString& hint);
void paintEvent(QPaintEvent* e);
private:
QString hint_;
};
#endif // LINEEDIT_H