Commit 0a47447d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

Qt4: Cosmetics about ClickLineEdit, QVLCFramelessButton

This removes useless member, useless parameter, useless empty dtor, and
adds a missing reference.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 16196a40
...@@ -109,7 +109,7 @@ QVLCFramelessButton::QVLCFramelessButton( QWidget *parent ) ...@@ -109,7 +109,7 @@ QVLCFramelessButton::QVLCFramelessButton( QWidget *parent )
setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred ); setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
} }
void QVLCFramelessButton::paintEvent( QPaintEvent * event ) void QVLCFramelessButton::paintEvent( QPaintEvent * )
{ {
QPainter painter( this ); QPainter painter( this );
QPixmap pix = icon().pixmap( size() ); QPixmap pix = icon().pixmap( size() );
......
...@@ -45,9 +45,8 @@ class ClickLineEdit : public QLineEdit ...@@ -45,9 +45,8 @@ class ClickLineEdit : public QLineEdit
Q_PROPERTY( QString clickMessage READ clickMessage WRITE setClickMessage ) Q_PROPERTY( QString clickMessage READ clickMessage WRITE setClickMessage )
public: public:
ClickLineEdit( const QString &msg, QWidget *parent ); ClickLineEdit( const QString &msg, QWidget *parent );
virtual ~ClickLineEdit() {};
void setClickMessage( const QString &msg ); void setClickMessage( const QString &msg );
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:
virtual void paintEvent( QPaintEvent *e ); virtual void paintEvent( QPaintEvent *e );
...@@ -83,7 +82,6 @@ private: ...@@ -83,7 +82,6 @@ private:
void setMessageVisible( bool on ); void setMessageVisible( bool on );
QVLCFramelessButton *clearButton; QVLCFramelessButton *clearButton;
bool message; bool message;
QLabel *msg;
public slots: public slots:
void clear(); void clear();
......
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