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 )
setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
}
void QVLCFramelessButton::paintEvent( QPaintEvent * event )
void QVLCFramelessButton::paintEvent( QPaintEvent * )
{
QPainter painter( this );
QPixmap pix = icon().pixmap( size() );
......
......@@ -45,9 +45,8 @@ class ClickLineEdit : public QLineEdit
Q_PROPERTY( QString clickMessage READ clickMessage WRITE setClickMessage )
public:
ClickLineEdit( const QString &msg, QWidget *parent );
virtual ~ClickLineEdit() {};
void setClickMessage( const QString &msg );
QString clickMessage() const { return mClickMessage; }
const QString& clickMessage() const { return mClickMessage; }
virtual void setText( const QString& txt );
protected:
virtual void paintEvent( QPaintEvent *e );
......@@ -83,7 +82,6 @@ private:
void setMessageVisible( bool on );
QVLCFramelessButton *clearButton;
bool message;
QLabel *msg;
public slots:
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