Commit 8a7513fe authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: SearchLineEdit: rename function to match Qt4.7 names

parent 5f47703c
...@@ -43,10 +43,10 @@ ...@@ -43,10 +43,10 @@
ClickLineEdit::ClickLineEdit( const QString &msg, QWidget *parent) : QLineEdit( parent ) ClickLineEdit::ClickLineEdit( const QString &msg, QWidget *parent) : QLineEdit( parent )
{ {
mDrawClickMsg = true; mDrawClickMsg = true;
setClickMessage( msg ); setPlaceholderText( msg );
} }
void ClickLineEdit::setClickMessage( const QString &msg ) void ClickLineEdit::setPlaceholderText( const QString &msg )
{ {
mClickMessage = msg; mClickMessage = msg;
repaint(); repaint();
...@@ -100,6 +100,9 @@ void ClickLineEdit::focusOutEvent( QFocusEvent *ev ) ...@@ -100,6 +100,9 @@ void ClickLineEdit::focusOutEvent( QFocusEvent *ev )
QLineEdit::focusOutEvent( ev ); QLineEdit::focusOutEvent( ev );
} }
SearchLineEdit::SearchLineEdit( QWidget *parent ) : QLineEdit( parent ) SearchLineEdit::SearchLineEdit( QWidget *parent ) : QLineEdit( parent )
{ {
clearButton = new QVLCFramelessButton( this ); clearButton = new QVLCFramelessButton( this );
......
...@@ -39,10 +39,10 @@ ...@@ -39,10 +39,10 @@
class ClickLineEdit : public QLineEdit class ClickLineEdit : public QLineEdit
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY( QString clickMessage READ clickMessage WRITE setClickMessage ) Q_PROPERTY( QString clickMessage READ clickMessage WRITE setPlaceholderText )
public: public:
ClickLineEdit( const QString &msg, QWidget *parent ); ClickLineEdit( const QString &msg, QWidget *parent );
void setClickMessage( const QString &msg ); void setPlaceholderText( const QString &msg );
const QString& clickMessage() const { return mClickMessage; } const QString& clickMessage() const { return mClickMessage; }
virtual void setText( const QString& txt ); virtual void setText( const QString& txt );
protected: protected:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment