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 @@
ClickLineEdit::ClickLineEdit( const QString &msg, QWidget *parent) : QLineEdit( parent )
{
mDrawClickMsg = true;
setClickMessage( msg );
setPlaceholderText( msg );
}
void ClickLineEdit::setClickMessage( const QString &msg )
void ClickLineEdit::setPlaceholderText( const QString &msg )
{
mClickMessage = msg;
repaint();
......@@ -100,6 +100,9 @@ void ClickLineEdit::focusOutEvent( QFocusEvent *ev )
QLineEdit::focusOutEvent( ev );
}
SearchLineEdit::SearchLineEdit( QWidget *parent ) : QLineEdit( parent )
{
clearButton = new QVLCFramelessButton( this );
......
......@@ -39,10 +39,10 @@
class ClickLineEdit : public QLineEdit
{
Q_OBJECT
Q_PROPERTY( QString clickMessage READ clickMessage WRITE setClickMessage )
Q_PROPERTY( QString clickMessage READ clickMessage WRITE setPlaceholderText )
public:
ClickLineEdit( const QString &msg, QWidget *parent );
void setClickMessage( const QString &msg );
void setPlaceholderText( const QString &msg );
const QString& clickMessage() const { return mClickMessage; }
virtual void setText( const QString& txt );
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