Commit 212bf2e8 authored by Uwe L. Korn's avatar Uwe L. Korn Committed by Tristan Matthews

qt4: Replace redundant virtual with Q_DECL_OVERRIDE

Declaring a virtual function in a subclass as virtual may be a good
documentation that we are overriding a method from the superclass but
has no effect during compilation. With C++11, we can use the override
keyword for this (which will even trigger a compiler error if we try to
override a non-virtual function).

To stay backwards-compatible, we use Qt5's Q_DECL_OVERRIDE macro to
support C++ <11.
Signed-off-by: default avatarTristan Matthews <le.businessman@gmail.com>
parent 6aaf1e0c
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
# include <config.h> # include <config.h>
#endif #endif
#include "qt4.hpp"
#include <QObject> #include <QObject>
#include <vlc_common.h> #include <vlc_common.h>
...@@ -47,7 +49,7 @@ class QVLCPointer : public QVLCVariable ...@@ -47,7 +49,7 @@ class QVLCPointer : public QVLCVariable
{ {
Q_OBJECT Q_OBJECT
private: private:
virtual void trigger (vlc_value_t, vlc_value_t); void trigger (vlc_value_t, vlc_value_t) Q_DECL_OVERRIDE;
public: public:
QVLCPointer (vlc_object_t *, const char *, bool inherit = false); QVLCPointer (vlc_object_t *, const char *, bool inherit = false);
...@@ -62,7 +64,7 @@ class QVLCInteger : public QVLCVariable ...@@ -62,7 +64,7 @@ class QVLCInteger : public QVLCVariable
{ {
Q_OBJECT Q_OBJECT
private: private:
virtual void trigger (vlc_value_t, vlc_value_t); void trigger (vlc_value_t, vlc_value_t) Q_DECL_OVERRIDE;
public: public:
QVLCInteger (vlc_object_t *, const char *, bool inherit = false); QVLCInteger (vlc_object_t *, const char *, bool inherit = false);
...@@ -77,7 +79,7 @@ class QVLCBool : public QVLCVariable ...@@ -77,7 +79,7 @@ class QVLCBool : public QVLCVariable
{ {
Q_OBJECT Q_OBJECT
private: private:
virtual void trigger (vlc_value_t, vlc_value_t); void trigger (vlc_value_t, vlc_value_t) Q_DECL_OVERRIDE;
public: public:
QVLCBool (vlc_object_t *, const char *, bool inherit = false); QVLCBool (vlc_object_t *, const char *, bool inherit = false);
...@@ -92,7 +94,7 @@ class QVLCFloat : public QVLCVariable ...@@ -92,7 +94,7 @@ class QVLCFloat : public QVLCVariable
{ {
Q_OBJECT Q_OBJECT
private: private:
virtual void trigger (vlc_value_t, vlc_value_t); void trigger (vlc_value_t, vlc_value_t) Q_DECL_OVERRIDE;
public: public:
QVLCFloat (vlc_object_t *, const char *, bool inherit = false); QVLCFloat (vlc_object_t *, const char *, bool inherit = false);
...@@ -107,7 +109,7 @@ class QVLCString : public QVLCVariable ...@@ -107,7 +109,7 @@ class QVLCString : public QVLCVariable
{ {
Q_OBJECT Q_OBJECT
private: private:
virtual void trigger (vlc_value_t, vlc_value_t); void trigger (vlc_value_t, vlc_value_t) Q_DECL_OVERRIDE;
public: public:
QVLCString (vlc_object_t *, const char *, bool inherit = false); QVLCString (vlc_object_t *, const char *, bool inherit = false);
......
...@@ -275,14 +275,14 @@ public slots: ...@@ -275,14 +275,14 @@ public slots:
protected: protected:
friend class MainInterface; friend class MainInterface;
virtual void mouseMoveEvent( QMouseEvent *event ); void mouseMoveEvent( QMouseEvent *event ) Q_DECL_OVERRIDE;
virtual void mousePressEvent( QMouseEvent *event ); void mousePressEvent( QMouseEvent *event ) Q_DECL_OVERRIDE;
virtual void mouseReleaseEvent( QMouseEvent *event ); void mouseReleaseEvent( QMouseEvent *event ) Q_DECL_OVERRIDE;
virtual void enterEvent( QEvent *event ); void enterEvent( QEvent *event ) Q_DECL_OVERRIDE;
virtual void leaveEvent( QEvent *event ); void leaveEvent( QEvent *event ) Q_DECL_OVERRIDE;
virtual void keyPressEvent( QKeyEvent *event ); void keyPressEvent( QKeyEvent *event ) Q_DECL_OVERRIDE;
virtual void customEvent( QEvent *event ); void customEvent( QEvent *event ) Q_DECL_OVERRIDE;
private slots: private slots:
void showFSC(); void showFSC();
......
...@@ -102,7 +102,7 @@ public: ...@@ -102,7 +102,7 @@ public:
void setMuted( bool ); void setMuted( bool );
protected: protected:
virtual bool eventFilter( QObject *obj, QEvent *e ); bool eventFilter( QObject *obj, QEvent *e ) Q_DECL_OVERRIDE;
private: private:
intf_thread_t *p_intf; intf_thread_t *p_intf;
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#ifndef EPGCHANNELS_HPP #ifndef EPGCHANNELS_HPP
#define EPGCHANNELS_HPP #define EPGCHANNELS_HPP
#include "qt4.hpp"
#include <QWidget> #include <QWidget>
class EPGView; class EPGView;
...@@ -39,7 +41,7 @@ public slots: ...@@ -39,7 +41,7 @@ public slots:
void removeChannel( QString ); void removeChannel( QString );
protected: protected:
virtual void paintEvent( QPaintEvent *event ); void paintEvent( QPaintEvent *event ) Q_DECL_OVERRIDE;
private: private:
EPGView *m_epgView; EPGView *m_epgView;
......
...@@ -40,8 +40,8 @@ class EPGItem : public QGraphicsItem ...@@ -40,8 +40,8 @@ class EPGItem : public QGraphicsItem
public: public:
EPGItem( vlc_epg_event_t *data, EPGView *view ); EPGItem( vlc_epg_event_t *data, EPGView *view );
virtual QRectF boundingRect() const; QRectF boundingRect() const Q_DECL_OVERRIDE;
virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0 ); void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0 ) Q_DECL_OVERRIDE;
const QDateTime& start() const; const QDateTime& start() const;
QDateTime end() const; QDateTime end() const;
...@@ -60,9 +60,9 @@ public: ...@@ -60,9 +60,9 @@ public:
bool playsAt( const QDateTime & ) const; bool playsAt( const QDateTime & ) const;
protected: protected:
virtual void focusInEvent( QFocusEvent * event ); void focusInEvent( QFocusEvent * event ) Q_DECL_OVERRIDE;
virtual void hoverEnterEvent ( QGraphicsSceneHoverEvent * ); void hoverEnterEvent ( QGraphicsSceneHoverEvent * ) Q_DECL_OVERRIDE;
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * ); void hoverLeaveEvent ( QGraphicsSceneHoverEvent * ) Q_DECL_OVERRIDE;
private: private:
EPGView *m_view; EPGView *m_view;
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#ifndef EPGRULER_H #ifndef EPGRULER_H
#define EPGRULER_H #define EPGRULER_H
#include "qt4.hpp"
#include <QWidget> #include <QWidget>
#include <QDateTime> #include <QDateTime>
...@@ -42,7 +44,7 @@ public slots: ...@@ -42,7 +44,7 @@ public slots:
void setOffset( int offset ); void setOffset( int offset );
protected: protected:
virtual void paintEvent( QPaintEvent *event ); void paintEvent( QPaintEvent *event ) Q_DECL_OVERRIDE;
private: private:
qreal m_scale; qreal m_scale;
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <vlc_common.h> #include <vlc_common.h>
#include "qt4.hpp"
#include "ui/equalizer.h" #include "ui/equalizer.h"
#include "ui/video_effects.h" #include "ui/video_effects.h"
...@@ -71,7 +72,7 @@ class ExtV4l2 : public QWidget ...@@ -71,7 +72,7 @@ class ExtV4l2 : public QWidget
public: public:
ExtV4l2( intf_thread_t *, QWidget * ); ExtV4l2( intf_thread_t *, QWidget * );
virtual void showEvent( QShowEvent *event ); void showEvent( QShowEvent *event ) Q_DECL_OVERRIDE;
private: private:
intf_thread_t *p_intf; intf_thread_t *p_intf;
...@@ -156,13 +157,13 @@ public: ...@@ -156,13 +157,13 @@ public:
const slider_data_t *p_data, int index ); const slider_data_t *p_data, int index );
protected: protected:
virtual float initialValue(); float initialValue() Q_DECL_OVERRIDE;
int index; int index;
QStringList getBandsFromAout() const; QStringList getBandsFromAout() const;
public slots: public slots:
virtual void onValueChanged( int i ) const; void onValueChanged( int i ) const Q_DECL_OVERRIDE;
virtual void writeToConfig() const; void writeToConfig() const Q_DECL_OVERRIDE;
}; };
class Equalizer: public AudioFilterControlWidget class Equalizer: public AudioFilterControlWidget
...@@ -173,10 +174,10 @@ public: ...@@ -173,10 +174,10 @@ public:
Equalizer( intf_thread_t *, QWidget * ); Equalizer( intf_thread_t *, QWidget * );
protected: protected:
virtual void build(); void build() Q_DECL_OVERRIDE;
protected slots: protected slots:
virtual void setSaveToConfig( bool ); void setSaveToConfig( bool ) Q_DECL_OVERRIDE;
private: private:
FilterSliderData *preamp; FilterSliderData *preamp;
......
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
# include "config.h" # include "config.h"
#endif #endif
#include "qt4.hpp"
#include <vlc_common.h> #include <vlc_common.h>
#include <QWidget> #include <QWidget>
...@@ -113,7 +115,7 @@ class InputStatsPanel: public QWidget ...@@ -113,7 +115,7 @@ class InputStatsPanel: public QWidget
public: public:
InputStatsPanel( QWidget * ); InputStatsPanel( QWidget * );
protected: protected:
virtual void hideEvent( QHideEvent * ); void hideEvent( QHideEvent * ) Q_DECL_OVERRIDE;
private: private:
QTreeWidget *StatsTree; QTreeWidget *StatsTree;
QTreeWidgetItem *input; QTreeWidgetItem *input;
......
...@@ -64,7 +64,7 @@ public: ...@@ -64,7 +64,7 @@ public:
void sync( void ); void sync( void );
protected: protected:
virtual QPaintEngine *paintEngine() const QPaintEngine *paintEngine() const Q_DECL_OVERRIDE
{ {
return NULL; return NULL;
} }
...@@ -95,10 +95,10 @@ private: ...@@ -95,10 +95,10 @@ private:
bool b_expandPixmap; bool b_expandPixmap;
bool b_withart; bool b_withart;
QPropertyAnimation *fadeAnimation; QPropertyAnimation *fadeAnimation;
virtual void contextMenuEvent( QContextMenuEvent *event ); void contextMenuEvent( QContextMenuEvent *event ) Q_DECL_OVERRIDE;
protected: protected:
void paintEvent( QPaintEvent *e ); void paintEvent( QPaintEvent *e ) Q_DECL_OVERRIDE;
virtual void showEvent( QShowEvent * e ); void showEvent( QShowEvent * e ) Q_DECL_OVERRIDE;
static const int MARGIN = 5; static const int MARGIN = 5;
QString defaultArt; QString defaultArt;
public slots: public slots:
...@@ -118,10 +118,10 @@ public slots: ...@@ -118,10 +118,10 @@ public slots:
void animate(); void animate();
protected: protected:
void paintEvent( QPaintEvent *e ); void paintEvent( QPaintEvent *e ) Q_DECL_OVERRIDE;
void showEvent( QShowEvent *e ); void showEvent( QShowEvent *e ) Q_DECL_OVERRIDE;
void hideEvent( QHideEvent * ); void hideEvent( QHideEvent * ) Q_DECL_OVERRIDE;
void resizeEvent( QResizeEvent * ); void resizeEvent( QResizeEvent * ) Q_DECL_OVERRIDE;
private slots: private slots:
void spawnFlakes(); void spawnFlakes();
...@@ -161,7 +161,7 @@ class ClickableQLabel : public QLabel ...@@ -161,7 +161,7 @@ class ClickableQLabel : public QLabel
{ {
Q_OBJECT Q_OBJECT
public: public:
virtual void mouseDoubleClickEvent( QMouseEvent *event ) void mouseDoubleClickEvent( QMouseEvent *event ) Q_DECL_OVERRIDE
{ {
Q_UNUSED( event ); Q_UNUSED( event );
emit doubleClicked(); emit doubleClicked();
...@@ -183,13 +183,13 @@ public: ...@@ -183,13 +183,13 @@ public:
TimeLabel( intf_thread_t *_p_intf, TimeLabel::Display _displayType = TimeLabel::Both ); TimeLabel( intf_thread_t *_p_intf, TimeLabel::Display _displayType = TimeLabel::Both );
protected: protected:
virtual void mousePressEvent( QMouseEvent *event ) void mousePressEvent( QMouseEvent *event ) Q_DECL_OVERRIDE
{ {
if( displayType == TimeLabel::Elapsed ) return; if( displayType == TimeLabel::Elapsed ) return;
toggleTimeDisplay(); toggleTimeDisplay();
event->accept(); event->accept();
} }
virtual void mouseDoubleClickEvent( QMouseEvent *event ) void mouseDoubleClickEvent( QMouseEvent *event ) Q_DECL_OVERRIDE
{ {
if( displayType != TimeLabel::Both ) return; if( displayType != TimeLabel::Both ) return;
event->accept(); event->accept();
...@@ -218,7 +218,7 @@ public: ...@@ -218,7 +218,7 @@ public:
virtual ~SpeedLabel(); virtual ~SpeedLabel();
protected: protected:
virtual void mousePressEvent ( QMouseEvent * event ) void mousePressEvent ( QMouseEvent * event ) Q_DECL_OVERRIDE
{ {
showSpeedMenu( event->pos() ); showSpeedMenu( event->pos() );
} }
...@@ -263,7 +263,7 @@ public: ...@@ -263,7 +263,7 @@ public:
virtual ~CoverArtLabel(); virtual ~CoverArtLabel();
protected: protected:
virtual void mouseDoubleClickEvent( QMouseEvent *event ) void mouseDoubleClickEvent( QMouseEvent *event ) Q_DECL_OVERRIDE
{ {
if( ! p_item && qobject_cast<MetaPanel *>(this->window()) == NULL ) if( ! p_item && qobject_cast<MetaPanel *>(this->window()) == NULL )
{ {
......
...@@ -102,7 +102,7 @@ class FileOpenPanel: public OpenPanel ...@@ -102,7 +102,7 @@ class FileOpenPanel: public OpenPanel
public: public:
FileOpenPanel( QWidget *, intf_thread_t * ); FileOpenPanel( QWidget *, intf_thread_t * );
virtual ~FileOpenPanel(); virtual ~FileOpenPanel();
virtual void clear() ; void clear() Q_DECL_OVERRIDE;
virtual void accept() ; virtual void accept() ;
protected: protected:
bool eventFilter(QObject *, QEvent *event) bool eventFilter(QObject *, QEvent *event)
...@@ -115,16 +115,16 @@ protected: ...@@ -115,16 +115,16 @@ protected:
} }
return false; return false;
} }
virtual void dropEvent( QDropEvent *); void dropEvent( QDropEvent *) Q_DECL_OVERRIDE;
virtual void dragEnterEvent( QDragEnterEvent * ); void dragEnterEvent( QDragEnterEvent * ) Q_DECL_OVERRIDE;
virtual void dragMoveEvent( QDragMoveEvent * ); void dragMoveEvent( QDragMoveEvent * ) Q_DECL_OVERRIDE;
virtual void dragLeaveEvent( QDragLeaveEvent * ); void dragLeaveEvent( QDragLeaveEvent * ) Q_DECL_OVERRIDE;
private: private:
Ui::OpenFile ui; Ui::OpenFile ui;
FileOpenBox *dialogBox; FileOpenBox *dialogBox;
void BuildOldPanel(); void BuildOldPanel();
public slots: public slots:
virtual void updateMRL(); void updateMRL() Q_DECL_OVERRIDE;
private slots: private slots:
void browseFileSub(); void browseFileSub();
void browseFile(); void browseFile();
...@@ -138,14 +138,14 @@ class NetOpenPanel: public OpenPanel ...@@ -138,14 +138,14 @@ class NetOpenPanel: public OpenPanel
public: public:
NetOpenPanel( QWidget *, intf_thread_t * ); NetOpenPanel( QWidget *, intf_thread_t * );
virtual ~NetOpenPanel(); virtual ~NetOpenPanel();
virtual void clear() ; void clear() Q_DECL_OVERRIDE;
virtual void onFocus(); void onFocus() Q_DECL_OVERRIDE;
virtual void onAccept(); void onAccept() Q_DECL_OVERRIDE;
private: private:
Ui::OpenNetwork ui; Ui::OpenNetwork ui;
bool b_recentList; bool b_recentList;
public slots: public slots:
virtual void updateMRL(); void updateMRL() Q_DECL_OVERRIDE;
}; };
class DiscOpenPanel: public OpenPanel class DiscOpenPanel: public OpenPanel
...@@ -162,8 +162,8 @@ class DiscOpenPanel: public OpenPanel ...@@ -162,8 +162,8 @@ class DiscOpenPanel: public OpenPanel
public: public:
DiscOpenPanel( QWidget *, intf_thread_t * ); DiscOpenPanel( QWidget *, intf_thread_t * );
virtual ~DiscOpenPanel(); virtual ~DiscOpenPanel();
virtual void clear() ; void clear() Q_DECL_OVERRIDE;
virtual void accept() ; virtual void accept();
#if defined( _WIN32 ) || defined( __OS2__ ) #if defined( _WIN32 ) || defined( __OS2__ )
virtual void onFocus(); virtual void onFocus();
#endif #endif
...@@ -172,7 +172,7 @@ private: ...@@ -172,7 +172,7 @@ private:
char *psz_dvddiscpath, *psz_vcddiscpath, *psz_cddadiscpath; char *psz_dvddiscpath, *psz_vcddiscpath, *psz_cddadiscpath;
DiscType m_discType; DiscType m_discType;
public slots: public slots:
virtual void updateMRL() ; void updateMRL() Q_DECL_OVERRIDE;
private slots: private slots:
void browseDevice(); void browseDevice();
void updateButtons() ; void updateButtons() ;
...@@ -186,7 +186,7 @@ class CaptureOpenPanel: public OpenPanel ...@@ -186,7 +186,7 @@ class CaptureOpenPanel: public OpenPanel
public: public:
CaptureOpenPanel( QWidget *, intf_thread_t * ); CaptureOpenPanel( QWidget *, intf_thread_t * );
virtual ~CaptureOpenPanel(); virtual ~CaptureOpenPanel();
virtual void clear() ; void clear() Q_DECL_OVERRIDE;
private: private:
Ui::OpenCapture ui; Ui::OpenCapture ui;
bool isInitialized; bool isInitialized;
...@@ -213,7 +213,7 @@ private: ...@@ -213,7 +213,7 @@ private:
QDoubleSpinBox *screenFPS; QDoubleSpinBox *screenFPS;
public slots: public slots:
virtual void updateMRL(); void updateMRL() Q_DECL_OVERRIDE;
void initialize(); void initialize();
private slots: private slots:
void updateButtons(); void updateButtons();
......
...@@ -72,9 +72,9 @@ private: ...@@ -72,9 +72,9 @@ private:
protected: protected:
PlaylistWidget( intf_thread_t *_p_i, QWidget * ); PlaylistWidget( intf_thread_t *_p_i, QWidget * );
virtual void dropEvent( QDropEvent *); void dropEvent( QDropEvent *) Q_DECL_OVERRIDE;
virtual void dragEnterEvent( QDragEnterEvent * ); void dragEnterEvent( QDragEnterEvent * ) Q_DECL_OVERRIDE;
virtual void closeEvent( QCloseEvent * ); void closeEvent( QCloseEvent * ) Q_DECL_OVERRIDE;
private slots: private slots:
void changeView( const QModelIndex& index ); void changeView( const QModelIndex& index );
...@@ -100,10 +100,10 @@ public: ...@@ -100,10 +100,10 @@ public:
SplitterHandle( Qt::Orientation orientation, QSplitter * parent ); SplitterHandle( Qt::Orientation orientation, QSplitter * parent );
protected: protected:
virtual void paintEvent ( QPaintEvent * ); void paintEvent ( QPaintEvent * ) Q_DECL_OVERRIDE;
private: private:
virtual QSize sizeHint () const; QSize sizeHint () const Q_DECL_OVERRIDE;
}; };
#endif /* __APPLE__ */ #endif /* __APPLE__ */
...@@ -111,9 +111,9 @@ class LocationButton : public QPushButton ...@@ -111,9 +111,9 @@ class LocationButton : public QPushButton
{ {
public: public:
LocationButton( const QString &, bool bold, bool arrow, QWidget * parent = NULL ); LocationButton( const QString &, bool bold, bool arrow, QWidget * parent = NULL );
virtual QSize sizeHint() const; QSize sizeHint() const Q_DECL_OVERRIDE;
protected: protected:
virtual void paintEvent ( QPaintEvent * event ); void paintEvent ( QPaintEvent * event ) Q_DECL_OVERRIDE;
private: private:
bool b_arrow; bool b_arrow;
}; };
...@@ -128,9 +128,9 @@ public: ...@@ -128,9 +128,9 @@ public:
LocationBar( VLCModel * ); LocationBar( VLCModel * );
void setIndex( const QModelIndex & ); void setIndex( const QModelIndex & );
void setModel( VLCModel * _model ) { model = _model; }; void setModel( VLCModel * _model ) { model = _model; };
virtual QSize sizeHint() const; QSize sizeHint() const Q_DECL_OVERRIDE;
protected: protected:
virtual void resizeEvent ( QResizeEvent * event ); void resizeEvent ( QResizeEvent * event ) Q_DECL_OVERRIDE;
private: private:
void layOut( const QSize& size ); void layOut( const QSize& size );
......
...@@ -73,39 +73,39 @@ public: ...@@ -73,39 +73,39 @@ public:
/*** QAbstractItemModel subclassing ***/ /*** QAbstractItemModel subclassing ***/
/* Data structure */ /* Data structure */
virtual QVariant data( const QModelIndex &index, const int role ) const; QVariant data( const QModelIndex &index, const int role ) const Q_DECL_OVERRIDE;
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const; int rowCount( const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
virtual Qt::ItemFlags flags( const QModelIndex &index ) const; Qt::ItemFlags flags( const QModelIndex &index ) const Q_DECL_OVERRIDE;
virtual QModelIndex index( const int r, const int c, const QModelIndex &parent ) const; QModelIndex index( const int r, const int c, const QModelIndex &parent ) const Q_DECL_OVERRIDE;
virtual QModelIndex parent( const QModelIndex &index ) const; QModelIndex parent( const QModelIndex &index ) const Q_DECL_OVERRIDE;
/* Drag and Drop */ /* Drag and Drop */
virtual Qt::DropActions supportedDropActions() const; Qt::DropActions supportedDropActions() const Q_DECL_OVERRIDE;
virtual QMimeData* mimeData( const QModelIndexList &indexes ) const; QMimeData* mimeData( const QModelIndexList &indexes ) const Q_DECL_OVERRIDE;
virtual bool dropMimeData( const QMimeData *data, Qt::DropAction action, bool dropMimeData( const QMimeData *data, Qt::DropAction action,
int row, int column, const QModelIndex &target ); int row, int column, const QModelIndex &target );
virtual QStringList mimeTypes() const; QStringList mimeTypes() const Q_DECL_OVERRIDE;
/* Sort */ /* Sort */
virtual void sort( const int column, Qt::SortOrder order = Qt::AscendingOrder ); void sort( const int column, Qt::SortOrder order = Qt::AscendingOrder ) Q_DECL_OVERRIDE;
/*** VLCModelSubInterface subclassing ***/ /*** VLCModelSubInterface subclassing ***/
virtual void rebuild( playlist_item_t * p = NULL ); void rebuild( playlist_item_t * p = NULL ) Q_DECL_OVERRIDE;
virtual void doDelete( QModelIndexList selected ); void doDelete( QModelIndexList selected ) Q_DECL_OVERRIDE;
virtual void createNode( QModelIndex index, QString name ); void createNode( QModelIndex index, QString name ) Q_DECL_OVERRIDE;
virtual void renameNode( QModelIndex index, QString name ); void renameNode( QModelIndex index, QString name ) Q_DECL_OVERRIDE;
virtual void removeAll(); void removeAll();
/* Lookups */ /* Lookups */
virtual QModelIndex rootIndex() const; QModelIndex rootIndex() const Q_DECL_OVERRIDE;
virtual void filter( const QString& search_text, const QModelIndex & root, bool b_recursive ); void filter( const QString& search_text, const QModelIndex & root, bool b_recursive ) Q_DECL_OVERRIDE;
virtual QModelIndex currentIndex() const; QModelIndex currentIndex() const Q_DECL_OVERRIDE;
virtual QModelIndex indexByPLID( const int i_plid, const int c ) const; QModelIndex indexByPLID( const int i_plid, const int c ) const Q_DECL_OVERRIDE;
virtual QModelIndex indexByInputItemID( const int i_inputitem_id, const int c ) const; QModelIndex indexByInputItemID( const int i_inputitem_id, const int c ) const Q_DECL_OVERRIDE;
virtual bool isTree() const; bool isTree() const Q_DECL_OVERRIDE;
virtual bool canEdit() const; bool canEdit() const Q_DECL_OVERRIDE;
virtual bool action( QAction *action, const QModelIndexList &indexes ); bool action( QAction *action, const QModelIndexList &indexes ) Q_DECL_OVERRIDE;
virtual bool isSupportedAction( actions action, const QModelIndex & ) const; bool isSupportedAction( actions action, const QModelIndex & ) const Q_DECL_OVERRIDE;
protected: protected:
/* VLCModel subclassing */ /* VLCModel subclassing */
......
...@@ -74,7 +74,7 @@ enum ItemAction { ...@@ -74,7 +74,7 @@ enum ItemAction {
class SelectorActionButton : public QFramelessButton class SelectorActionButton : public QFramelessButton
{ {
protected: protected:
virtual void paintEvent( QPaintEvent * ); void paintEvent( QPaintEvent * ) Q_DECL_OVERRIDE;
}; };
class PLSelItem : public QWidget class PLSelItem : public QWidget
...@@ -124,11 +124,11 @@ public: ...@@ -124,11 +124,11 @@ public:
int getCurrentItemCategory(); int getCurrentItemCategory();
protected: protected:
virtual void drawBranches ( QPainter *, const QRect &, const QModelIndex & ) const; void drawBranches ( QPainter *, const QRect &, const QModelIndex & ) const Q_DECL_OVERRIDE;
virtual void dragMoveEvent ( QDragMoveEvent * event ); void dragMoveEvent ( QDragMoveEvent * event ) Q_DECL_OVERRIDE;
virtual bool dropMimeData ( QTreeWidgetItem *, int, const QMimeData *, Qt::DropAction ); bool dropMimeData ( QTreeWidgetItem *, int, const QMimeData *, Qt::DropAction ) Q_DECL_OVERRIDE;
virtual QStringList mimeTypes () const; QStringList mimeTypes () const Q_DECL_OVERRIDE;
virtual void wheelEvent(QWheelEvent *e); void wheelEvent(QWheelEvent *e) Q_DECL_OVERRIDE;
private: private:
void createItems(); void createItems();
......
...@@ -75,7 +75,7 @@ public: ...@@ -75,7 +75,7 @@ public:
protected: protected:
VLCModel *model; VLCModel *model;
virtual void wheelEvent( QWheelEvent *e ); void wheelEvent( QWheelEvent *e ) Q_DECL_OVERRIDE;
bool popup( const QPoint &point ); bool popup( const QPoint &point );
private: private:
......
...@@ -52,9 +52,9 @@ class PlIconViewItemDelegate : public AbstractPlViewItemDelegate ...@@ -52,9 +52,9 @@ class PlIconViewItemDelegate : public AbstractPlViewItemDelegate
public: public:
PlIconViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate( parent ) {} PlIconViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate( parent ) {}
virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const; void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const Q_DECL_OVERRIDE;
virtual QSize sizeHint ( const QStyleOptionViewItem & option = QStyleOptionViewItem(), QSize sizeHint ( const QStyleOptionViewItem & option = QStyleOptionViewItem(),
const QModelIndex & index = QModelIndex() ) const; const QModelIndex & index = QModelIndex() ) const Q_DECL_OVERRIDE;
}; };
class PlListViewItemDelegate : public AbstractPlViewItemDelegate class PlListViewItemDelegate : public AbstractPlViewItemDelegate
...@@ -64,8 +64,8 @@ class PlListViewItemDelegate : public AbstractPlViewItemDelegate ...@@ -64,8 +64,8 @@ class PlListViewItemDelegate : public AbstractPlViewItemDelegate
public: public:
PlListViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate(parent) {} PlListViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate(parent) {}
virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const; void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const Q_DECL_OVERRIDE;
virtual QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const; QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const Q_DECL_OVERRIDE;
}; };
class PlTreeViewItemDelegate : public AbstractPlViewItemDelegate class PlTreeViewItemDelegate : public AbstractPlViewItemDelegate
...@@ -75,7 +75,7 @@ class PlTreeViewItemDelegate : public AbstractPlViewItemDelegate ...@@ -75,7 +75,7 @@ class PlTreeViewItemDelegate : public AbstractPlViewItemDelegate
public: public:
PlTreeViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate(parent) {} PlTreeViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate(parent) {}
virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const; void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const Q_DECL_OVERRIDE;
}; };
class CellPixmapDelegate : public QStyledItemDelegate class CellPixmapDelegate : public QStyledItemDelegate
...@@ -84,7 +84,7 @@ class CellPixmapDelegate : public QStyledItemDelegate ...@@ -84,7 +84,7 @@ class CellPixmapDelegate : public QStyledItemDelegate
public: public:
CellPixmapDelegate(QWidget *parent = 0) : QStyledItemDelegate(parent) {} CellPixmapDelegate(QWidget *parent = 0) : QStyledItemDelegate(parent) {}
virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const; void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const Q_DECL_OVERRIDE;
}; };
class PlIconView : public QListView class PlIconView : public QListView
...@@ -94,9 +94,9 @@ class PlIconView : public QListView ...@@ -94,9 +94,9 @@ class PlIconView : public QListView
public: public:
PlIconView( QAbstractItemModel *model, QWidget *parent = 0 ); PlIconView( QAbstractItemModel *model, QWidget *parent = 0 );
protected: protected:
virtual void startDrag ( Qt::DropActions supportedActions ); void startDrag ( Qt::DropActions supportedActions ) Q_DECL_OVERRIDE;
virtual void dragMoveEvent ( QDragMoveEvent * event ); void dragMoveEvent ( QDragMoveEvent * event ) Q_DECL_OVERRIDE;
virtual bool viewportEvent ( QEvent * ); bool viewportEvent ( QEvent * ) Q_DECL_OVERRIDE;
}; };
class PlListView : public QListView class PlListView : public QListView
...@@ -106,10 +106,10 @@ class PlListView : public QListView ...@@ -106,10 +106,10 @@ class PlListView : public QListView
public: public:
PlListView( QAbstractItemModel *model, QWidget *parent = 0 ); PlListView( QAbstractItemModel *model, QWidget *parent = 0 );
protected: protected:
virtual void startDrag ( Qt::DropActions supportedActions ); void startDrag ( Qt::DropActions supportedActions ) Q_DECL_OVERRIDE;
virtual void dragMoveEvent ( QDragMoveEvent * event ); void dragMoveEvent ( QDragMoveEvent * event ) Q_DECL_OVERRIDE;
virtual void keyPressEvent( QKeyEvent *event ); void keyPressEvent( QKeyEvent *event ) Q_DECL_OVERRIDE;
virtual bool viewportEvent ( QEvent * ); bool viewportEvent ( QEvent * ) Q_DECL_OVERRIDE;
}; };
class PlTreeView : public QTreeView class PlTreeView : public QTreeView
...@@ -119,10 +119,10 @@ class PlTreeView : public QTreeView ...@@ -119,10 +119,10 @@ class PlTreeView : public QTreeView
public: public:
PlTreeView( QAbstractItemModel *, QWidget *parent = 0 ); PlTreeView( QAbstractItemModel *, QWidget *parent = 0 );
protected: protected:
virtual void startDrag ( Qt::DropActions supportedActions ); void startDrag ( Qt::DropActions supportedActions ) Q_DECL_OVERRIDE;
virtual void dragMoveEvent ( QDragMoveEvent * event ); void dragMoveEvent ( QDragMoveEvent * event ) Q_DECL_OVERRIDE;
virtual void keyPressEvent( QKeyEvent *event ); void keyPressEvent( QKeyEvent *event ) Q_DECL_OVERRIDE;
virtual void setModel( QAbstractItemModel * ); void setModel( QAbstractItemModel * ) Q_DECL_OVERRIDE;
}; };
class PicFlowView : public QAbstractItemView class PicFlowView : public QAbstractItemView
...@@ -131,19 +131,19 @@ class PicFlowView : public QAbstractItemView ...@@ -131,19 +131,19 @@ class PicFlowView : public QAbstractItemView
public: public:
PicFlowView( QAbstractItemModel *model, QWidget *parent = 0 ); PicFlowView( QAbstractItemModel *model, QWidget *parent = 0 );
virtual QRect visualRect(const QModelIndex&) const; QRect visualRect(const QModelIndex&) const Q_DECL_OVERRIDE;
virtual void scrollTo(const QModelIndex&, QAbstractItemView::ScrollHint); void scrollTo(const QModelIndex&, QAbstractItemView::ScrollHint) Q_DECL_OVERRIDE;
virtual QModelIndex indexAt(const QPoint&) const; QModelIndex indexAt(const QPoint&) const Q_DECL_OVERRIDE;
virtual void setModel(QAbstractItemModel *model); void setModel(QAbstractItemModel *model) Q_DECL_OVERRIDE;
protected: protected:
virtual int horizontalOffset() const; int horizontalOffset() const Q_DECL_OVERRIDE;
virtual int verticalOffset() const; int verticalOffset() const Q_DECL_OVERRIDE;
virtual QModelIndex moveCursor(QAbstractItemView::CursorAction, Qt::KeyboardModifiers); QModelIndex moveCursor(QAbstractItemView::CursorAction, Qt::KeyboardModifiers) Q_DECL_OVERRIDE;
virtual bool isIndexHidden(const QModelIndex&) const; bool isIndexHidden(const QModelIndex&) const Q_DECL_OVERRIDE;
virtual QRegion visualRegionForSelection(const QItemSelection&) const; QRegion visualRegionForSelection(const QItemSelection&) const Q_DECL_OVERRIDE;
virtual void setSelection(const QRect&, QFlags<QItemSelectionModel::SelectionFlag>); void setSelection(const QRect&, QFlags<QItemSelectionModel::SelectionFlag>) Q_DECL_OVERRIDE;
virtual bool viewportEvent ( QEvent * ); bool viewportEvent ( QEvent * ) Q_DECL_OVERRIDE;
private: private:
PictureFlow *picFlow; PictureFlow *picFlow;
......
...@@ -124,14 +124,14 @@ public: ...@@ -124,14 +124,14 @@ public:
virtual ~VLCModel(); virtual ~VLCModel();
/*** QAbstractItemModel subclassing ***/ /*** QAbstractItemModel subclassing ***/
virtual int columnCount( const QModelIndex &parent = QModelIndex() ) const; int columnCount( const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
QVariant headerData( int, Qt::Orientation, int ) const; QVariant headerData( int, Qt::Orientation, int ) const Q_DECL_OVERRIDE;
/*** VLCModelSubInterface subclassing ***/ /*** VLCModelSubInterface subclassing ***/
virtual int itemId( const QModelIndex &, int type ) const; int itemId( const QModelIndex &, int type ) const Q_DECL_OVERRIDE;
virtual QString getURI( const QModelIndex &index ) const; QString getURI( const QModelIndex &index ) const Q_DECL_OVERRIDE;
virtual input_item_t *getInputItem( const QModelIndex & ) const; input_item_t *getInputItem( const QModelIndex & ) const Q_DECL_OVERRIDE;
virtual QString getTitle( const QModelIndex &index ) const; QString getTitle( const QModelIndex &index ) const Q_DECL_OVERRIDE;
/* Custom */ /* Custom */
static int columnToMeta( int _column ); static int columnToMeta( int _column );
...@@ -141,7 +141,7 @@ public: ...@@ -141,7 +141,7 @@ public:
public slots: public slots:
/* slots handlers */ /* slots handlers */
virtual void ensureArtRequested( const QModelIndex &index ); void ensureArtRequested( const QModelIndex &index ) Q_DECL_OVERRIDE;
signals: signals:
void currentIndexChanged( const QModelIndex& ); void currentIndexChanged( const QModelIndex& );
......
...@@ -118,7 +118,7 @@ class VIntConfigControl : public ConfigControl ...@@ -118,7 +118,7 @@ class VIntConfigControl : public ConfigControl
Q_OBJECT Q_OBJECT
public: public:
virtual int getValue() const = 0; virtual int getValue() const = 0;
virtual int getType() const; int getType() const Q_DECL_OVERRIDE;
virtual void doApply(); virtual void doApply();
protected: protected:
VIntConfigControl( vlc_object_t *a, module_config_t *b ) : VIntConfigControl( vlc_object_t *a, module_config_t *b ) :
...@@ -132,15 +132,15 @@ public: ...@@ -132,15 +132,15 @@ public:
IntegerConfigControl( vlc_object_t *, module_config_t *, QWidget * ); IntegerConfigControl( vlc_object_t *, module_config_t *, QWidget * );
IntegerConfigControl( vlc_object_t *, module_config_t *, IntegerConfigControl( vlc_object_t *, module_config_t *,
QLabel*, QSpinBox* ); QLabel*, QSpinBox* );
virtual int getValue() const; int getValue() const Q_DECL_OVERRIDE;
protected: protected:
QSpinBox *spin; QSpinBox *spin;
virtual void changeVisibility( bool b ) void changeVisibility( bool b ) Q_DECL_OVERRIDE
{ {
spin->setVisible( b ); spin->setVisible( b );
if ( label ) label->setVisible( b ); if ( label ) label->setVisible( b );
} }
virtual void fillGrid( QGridLayout*, int ); void fillGrid( QGridLayout*, int ) Q_DECL_OVERRIDE;
private: private:
QLabel *label; QLabel *label;
void finish(); void finish();
...@@ -165,10 +165,10 @@ class IntegerRangeSliderConfigControl : public VIntConfigControl ...@@ -165,10 +165,10 @@ class IntegerRangeSliderConfigControl : public VIntConfigControl
public: public:
IntegerRangeSliderConfigControl( vlc_object_t *, module_config_t *, IntegerRangeSliderConfigControl( vlc_object_t *, module_config_t *,
QLabel *, QSlider * ); QLabel *, QSlider * );
virtual int getValue() const; int getValue() const Q_DECL_OVERRIDE;
protected: protected:
QSlider *slider; QSlider *slider;
virtual void changeVisibility( bool b ) void changeVisibility( bool b ) Q_DECL_OVERRIDE
{ {
slider->setVisible( b ); slider->setVisible( b );
if ( label ) label->setVisible( b ); if ( label ) label->setVisible( b );
...@@ -185,14 +185,14 @@ public: ...@@ -185,14 +185,14 @@ public:
IntegerListConfigControl( vlc_object_t *, module_config_t *, QWidget *, bool ); IntegerListConfigControl( vlc_object_t *, module_config_t *, QWidget *, bool );
IntegerListConfigControl( vlc_object_t *, module_config_t *, QLabel *, IntegerListConfigControl( vlc_object_t *, module_config_t *, QLabel *,
QComboBox*, bool ); QComboBox*, bool );
virtual int getValue() const; int getValue() const Q_DECL_OVERRIDE;
protected: protected:
virtual void changeVisibility( bool b ) void changeVisibility( bool b ) Q_DECL_OVERRIDE
{ {
combo->setVisible( b ); combo->setVisible( b );
if ( label ) label->setVisible( b ); if ( label ) label->setVisible( b );
} }
virtual void fillGrid( QGridLayout*, int ); void fillGrid( QGridLayout*, int ) Q_DECL_OVERRIDE;
private: private:
void finish(module_config_t * ); void finish(module_config_t * );
QLabel *label; QLabel *label;
...@@ -207,14 +207,14 @@ public: ...@@ -207,14 +207,14 @@ public:
BoolConfigControl( vlc_object_t *, module_config_t *, QWidget * ); BoolConfigControl( vlc_object_t *, module_config_t *, QWidget * );
BoolConfigControl( vlc_object_t *, module_config_t *, BoolConfigControl( vlc_object_t *, module_config_t *,
QLabel *, QAbstractButton* ); QLabel *, QAbstractButton* );
virtual int getValue() const; int getValue() const Q_DECL_OVERRIDE;
virtual int getType() const; int getType() const Q_DECL_OVERRIDE;
protected: protected:
virtual void changeVisibility( bool b ) void changeVisibility( bool b ) Q_DECL_OVERRIDE
{ {
checkbox->setVisible( b ); checkbox->setVisible( b );
} }
virtual void fillGrid( QGridLayout*, int ); void fillGrid( QGridLayout*, int ) Q_DECL_OVERRIDE;
private: private:
QAbstractButton *checkbox; QAbstractButton *checkbox;
void finish(); void finish();
...@@ -228,14 +228,14 @@ public: ...@@ -228,14 +228,14 @@ public:
ColorConfigControl( vlc_object_t *, module_config_t *, ColorConfigControl( vlc_object_t *, module_config_t *,
QLabel *, QAbstractButton* ); QLabel *, QAbstractButton* );
virtual ~ColorConfigControl() { delete color_px; } virtual ~ColorConfigControl() { delete color_px; }
virtual int getValue() const; int getValue() const Q_DECL_OVERRIDE;
protected: protected:
virtual void changeVisibility( bool b ) void changeVisibility( bool b ) Q_DECL_OVERRIDE
{ {
color_but->setVisible( b ); color_but->setVisible( b );
if ( label ) label->setVisible( b ); if ( label ) label->setVisible( b );
} }
virtual void fillGrid( QGridLayout*, int ); void fillGrid( QGridLayout*, int ) Q_DECL_OVERRIDE;
private: private:
QLabel *label; QLabel *label;
QAbstractButton *color_but; QAbstractButton *color_but;
...@@ -254,8 +254,8 @@ class VFloatConfigControl : public ConfigControl ...@@ -254,8 +254,8 @@ class VFloatConfigControl : public ConfigControl
Q_OBJECT Q_OBJECT
public: public:
virtual float getValue() const = 0; virtual float getValue() const = 0;
virtual int getType() const; int getType() const Q_DECL_OVERRIDE;
virtual void doApply(); void doApply() Q_DECL_OVERRIDE;
protected: protected:
VFloatConfigControl( vlc_object_t *a, module_config_t *b ) : VFloatConfigControl( vlc_object_t *a, module_config_t *b ) :
ConfigControl(a,b) {}; ConfigControl(a,b) {};
...@@ -268,15 +268,15 @@ public: ...@@ -268,15 +268,15 @@ public:
FloatConfigControl( vlc_object_t *, module_config_t *, QWidget * ); FloatConfigControl( vlc_object_t *, module_config_t *, QWidget * );
FloatConfigControl( vlc_object_t *, module_config_t *, FloatConfigControl( vlc_object_t *, module_config_t *,
QLabel*, QDoubleSpinBox* ); QLabel*, QDoubleSpinBox* );
virtual float getValue() const; float getValue() const Q_DECL_OVERRIDE;
protected: protected:
virtual void changeVisibility( bool b ) void changeVisibility( bool b ) Q_DECL_OVERRIDE
{ {
spin->setVisible( b ); spin->setVisible( b );
if ( label ) label->setVisible( b ); if ( label ) label->setVisible( b );
} }
virtual void fillGrid( QGridLayout*, int ); void fillGrid( QGridLayout*, int ) Q_DECL_OVERRIDE;
QDoubleSpinBox *spin; QDoubleSpinBox *spin;
private: private:
...@@ -303,8 +303,8 @@ class VStringConfigControl : public ConfigControl ...@@ -303,8 +303,8 @@ class VStringConfigControl : public ConfigControl
Q_OBJECT Q_OBJECT
public: public:
virtual QString getValue() const = 0; virtual QString getValue() const = 0;
virtual int getType() const; int getType() const Q_DECL_OVERRIDE;
virtual void doApply(); void doApply() Q_DECL_OVERRIDE;
protected: protected:
VStringConfigControl( vlc_object_t *a, module_config_t *b ) : VStringConfigControl( vlc_object_t *a, module_config_t *b ) :
ConfigControl(a,b) {}; ConfigControl(a,b) {};
...@@ -318,14 +318,14 @@ public: ...@@ -318,14 +318,14 @@ public:
QWidget *, bool pwd ); QWidget *, bool pwd );
StringConfigControl( vlc_object_t *, module_config_t *, QLabel *, StringConfigControl( vlc_object_t *, module_config_t *, QLabel *,
QLineEdit*, bool pwd ); QLineEdit*, bool pwd );
virtual QString getValue() const { return text->text(); }; QString getValue() const Q_DECL_OVERRIDE { return text->text(); };
protected: protected:
virtual void changeVisibility( bool b ) void changeVisibility( bool b ) Q_DECL_OVERRIDE
{ {
text->setVisible( b ); text->setVisible( b );
if ( label ) label->setVisible( b ); if ( label ) label->setVisible( b );
} }
virtual void fillGrid( QGridLayout*, int ); void fillGrid( QGridLayout*, int ) Q_DECL_OVERRIDE;
private: private:
void finish(); void finish();
QLineEdit *text; QLineEdit *text;
...@@ -339,17 +339,17 @@ public: ...@@ -339,17 +339,17 @@ public:
FileConfigControl( vlc_object_t *, module_config_t *, QWidget * ); FileConfigControl( vlc_object_t *, module_config_t *, QWidget * );
FileConfigControl( vlc_object_t *, module_config_t *, QLabel *, FileConfigControl( vlc_object_t *, module_config_t *, QLabel *,
QLineEdit *, QPushButton * ); QLineEdit *, QPushButton * );
virtual QString getValue() const { return text->text(); }; QString getValue() const Q_DECL_OVERRIDE { return text->text(); };
public slots: public slots:
virtual void updateField(); virtual void updateField();
protected: protected:
virtual void changeVisibility( bool b ) void changeVisibility( bool b ) Q_DECL_OVERRIDE
{ {
text->setVisible( b ); text->setVisible( b );
browse->setVisible( b ); browse->setVisible( b );
if ( label ) label->setVisible( b ); if ( label ) label->setVisible( b );
} }
virtual void fillGrid( QGridLayout*, int ); void fillGrid( QGridLayout*, int ) Q_DECL_OVERRIDE;
void finish(); void finish();
QLineEdit *text; QLineEdit *text;
QLabel *label; QLabel *label;
...@@ -364,7 +364,7 @@ public: ...@@ -364,7 +364,7 @@ public:
DirectoryConfigControl( vlc_object_t *, module_config_t *, QLabel *, DirectoryConfigControl( vlc_object_t *, module_config_t *, QLabel *,
QLineEdit *, QPushButton * ); QLineEdit *, QPushButton * );
public slots: public slots:
virtual void updateField(); void updateField() Q_DECL_OVERRIDE;
}; };
class FontConfigControl : public VStringConfigControl class FontConfigControl : public VStringConfigControl
...@@ -374,14 +374,14 @@ public: ...@@ -374,14 +374,14 @@ public:
FontConfigControl( vlc_object_t *, module_config_t *, QWidget * ); FontConfigControl( vlc_object_t *, module_config_t *, QWidget * );
FontConfigControl( vlc_object_t *, module_config_t *, QLabel *, FontConfigControl( vlc_object_t *, module_config_t *, QLabel *,
QFontComboBox *); QFontComboBox *);
virtual QString getValue() const { return font->currentFont().family(); } QString getValue() const Q_DECL_OVERRIDE { return font->currentFont().family(); }
protected: protected:
virtual void changeVisibility( bool b ) void changeVisibility( bool b ) Q_DECL_OVERRIDE
{ {
font->setVisible( b ); font->setVisible( b );
if ( label ) label->setVisible( b ); if ( label ) label->setVisible( b );
} }
virtual void fillGrid( QGridLayout*, int ); void fillGrid( QGridLayout*, int ) Q_DECL_OVERRIDE;
QLabel *label; QLabel *label;
QFontComboBox *font; QFontComboBox *font;
}; };
...@@ -393,14 +393,14 @@ public: ...@@ -393,14 +393,14 @@ public:
ModuleConfigControl( vlc_object_t *, module_config_t *, QWidget * ); ModuleConfigControl( vlc_object_t *, module_config_t *, QWidget * );
ModuleConfigControl( vlc_object_t *, module_config_t *, QLabel *, ModuleConfigControl( vlc_object_t *, module_config_t *, QLabel *,
QComboBox* ); QComboBox* );
virtual QString getValue() const; QString getValue() const Q_DECL_OVERRIDE;
protected: protected:
virtual void changeVisibility( bool b ) void changeVisibility( bool b ) Q_DECL_OVERRIDE
{ {
combo->setVisible( b ); combo->setVisible( b );
if ( label ) label->setVisible( b ); if ( label ) label->setVisible( b );
} }
virtual void fillGrid( QGridLayout*, int ); void fillGrid( QGridLayout*, int ) Q_DECL_OVERRIDE;
private: private:
void finish( ); void finish( );
QLabel *label; QLabel *label;
...@@ -421,12 +421,12 @@ public: ...@@ -421,12 +421,12 @@ public:
// ModuleListConfigControl( vlc_object_t *, module_config_t *, QLabel *, // ModuleListConfigControl( vlc_object_t *, module_config_t *, QLabel *,
// QComboBox*, bool ); // QComboBox*, bool );
virtual ~ModuleListConfigControl(); virtual ~ModuleListConfigControl();
virtual QString getValue() const; QString getValue() const Q_DECL_OVERRIDE;
public slots: public slots:
void onUpdate(); void onUpdate();
protected: protected:
virtual void changeVisibility( bool ); void changeVisibility( bool ) Q_DECL_OVERRIDE;
virtual void fillGrid( QGridLayout*, int ); void fillGrid( QGridLayout*, int ) Q_DECL_OVERRIDE;
private: private:
void finish( bool ); void finish( bool );
void checkbox_lists(module_t*); void checkbox_lists(module_t*);
...@@ -443,14 +443,14 @@ public: ...@@ -443,14 +443,14 @@ public:
StringListConfigControl( vlc_object_t *, module_config_t *, QWidget * ); StringListConfigControl( vlc_object_t *, module_config_t *, QWidget * );
StringListConfigControl( vlc_object_t *, module_config_t *, QLabel *, StringListConfigControl( vlc_object_t *, module_config_t *, QLabel *,
QComboBox*, bool ); QComboBox*, bool );
virtual QString getValue() const; QString getValue() const Q_DECL_OVERRIDE;
protected: protected:
virtual void changeVisibility( bool b ) void changeVisibility( bool b ) Q_DECL_OVERRIDE
{ {
combo->setVisible( b ); combo->setVisible( b );
if ( label ) label->setVisible( b ); if ( label ) label->setVisible( b );
} }
virtual void fillGrid( QGridLayout*, int ); void fillGrid( QGridLayout*, int ) Q_DECL_OVERRIDE;
QComboBox *combo; QComboBox *combo;
private: private:
void finish(module_config_t * ); void finish(module_config_t * );
...@@ -476,7 +476,7 @@ public: ...@@ -476,7 +476,7 @@ public:
StringConfigControl( vlc_object_t *, module_config_t *, QWidget *, bool StringConfigControl( vlc_object_t *, module_config_t *, QWidget *, bool
bycat ); bycat );
virtual ~StringConfigControl(); virtual ~StringConfigControl();
virtual QString getValue(); QString getValue() Q_DECL_OVERRIDE;
private: private:
QVector<ModuleCheckBox> checkboxes; QVector<ModuleCheckBox> checkboxes;
QLineEdit *text; QLineEdit *text;
...@@ -494,17 +494,17 @@ class KeySelectorControl : public ConfigControl ...@@ -494,17 +494,17 @@ class KeySelectorControl : public ConfigControl
public: public:
KeySelectorControl( vlc_object_t *, module_config_t *, QWidget * ); KeySelectorControl( vlc_object_t *, module_config_t *, QWidget * );
virtual int getType() const; int getType() const Q_DECL_OVERRIDE;
virtual void doApply(); void doApply() Q_DECL_OVERRIDE;
protected: protected:
virtual bool eventFilter( QObject *, QEvent * ); bool eventFilter( QObject *, QEvent * ) Q_DECL_OVERRIDE;
virtual void changeVisibility( bool b ) void changeVisibility( bool b ) Q_DECL_OVERRIDE
{ {
table->setVisible( b ); table->setVisible( b );
if ( label ) label->setVisible( b ); if ( label ) label->setVisible( b );
} }
virtual void fillGrid( QGridLayout*, int ); void fillGrid( QGridLayout*, int ) Q_DECL_OVERRIDE;
private: private:
void buildAppHotkeysList( QWidget *rootWidget ); void buildAppHotkeysList( QWidget *rootWidget );
......
...@@ -82,7 +82,7 @@ private: ...@@ -82,7 +82,7 @@ private:
void loadCapabilities(); void loadCapabilities();
void reset(); void reset();
protected slots: protected slots:
virtual void close(); void close() Q_DECL_OVERRIDE;
private slots: private slots:
void muxSelected(); void muxSelected();
void codecSelected(); void codecSelected();
......
...@@ -66,7 +66,7 @@ class FileDestBox: public VirtualDestBox ...@@ -66,7 +66,7 @@ class FileDestBox: public VirtualDestBox
Q_OBJECT Q_OBJECT
public: public:
FileDestBox( QWidget *_parent = NULL, intf_thread_t * = NULL ); FileDestBox( QWidget *_parent = NULL, intf_thread_t * = NULL );
virtual QString getMRL( const QString& ); QString getMRL( const QString& ) Q_DECL_OVERRIDE;
private: private:
QLineEdit *fileEdit; QLineEdit *fileEdit;
intf_thread_t *p_intf; intf_thread_t *p_intf;
...@@ -79,7 +79,7 @@ class HTTPDestBox: public VirtualDestBox ...@@ -79,7 +79,7 @@ class HTTPDestBox: public VirtualDestBox
Q_OBJECT Q_OBJECT
public: public:
HTTPDestBox( QWidget *_parent = NULL ); HTTPDestBox( QWidget *_parent = NULL );
virtual QString getMRL( const QString& ); QString getMRL( const QString& ) Q_DECL_OVERRIDE;
private: private:
QLineEdit *HTTPEdit; QLineEdit *HTTPEdit;
QSpinBox *HTTPPort; QSpinBox *HTTPPort;
...@@ -90,7 +90,7 @@ class MMSHDestBox: public VirtualDestBox ...@@ -90,7 +90,7 @@ class MMSHDestBox: public VirtualDestBox
Q_OBJECT Q_OBJECT
public: public:
MMSHDestBox( QWidget *_parent = NULL ); MMSHDestBox( QWidget *_parent = NULL );
virtual QString getMRL( const QString& ); QString getMRL( const QString& ) Q_DECL_OVERRIDE;
private: private:
QLineEdit *MMSHEdit; QLineEdit *MMSHEdit;
QSpinBox *MMSHPort; QSpinBox *MMSHPort;
...@@ -101,7 +101,7 @@ class RTSPDestBox: public VirtualDestBox ...@@ -101,7 +101,7 @@ class RTSPDestBox: public VirtualDestBox
Q_OBJECT Q_OBJECT
public: public:
RTSPDestBox( QWidget *_parent = NULL ); RTSPDestBox( QWidget *_parent = NULL );
virtual QString getMRL( const QString& ); QString getMRL( const QString& ) Q_DECL_OVERRIDE;
private: private:
QLineEdit *RTSPEdit; QLineEdit *RTSPEdit;
QSpinBox *RTSPPort; QSpinBox *RTSPPort;
...@@ -112,7 +112,7 @@ class UDPDestBox: public VirtualDestBox ...@@ -112,7 +112,7 @@ class UDPDestBox: public VirtualDestBox
Q_OBJECT Q_OBJECT
public: public:
UDPDestBox( QWidget *_parent = NULL ); UDPDestBox( QWidget *_parent = NULL );
virtual QString getMRL( const QString& ); QString getMRL( const QString& ) Q_DECL_OVERRIDE;
private: private:
QLineEdit *UDPEdit; QLineEdit *UDPEdit;
QSpinBox *UDPPort; QSpinBox *UDPPort;
...@@ -123,7 +123,7 @@ class RTPDestBox: public VirtualDestBox ...@@ -123,7 +123,7 @@ class RTPDestBox: public VirtualDestBox
Q_OBJECT Q_OBJECT
public: public:
RTPDestBox( QWidget *_parent = NULL, const char *mux = NULL ); RTPDestBox( QWidget *_parent = NULL, const char *mux = NULL );
virtual QString getMRL( const QString& ); QString getMRL( const QString& ) Q_DECL_OVERRIDE;
private: private:
QLineEdit *RTPEdit; QLineEdit *RTPEdit;
QSpinBox *RTPPort; QSpinBox *RTPPort;
...@@ -136,7 +136,7 @@ class ICEDestBox: public VirtualDestBox ...@@ -136,7 +136,7 @@ class ICEDestBox: public VirtualDestBox
Q_OBJECT Q_OBJECT
public: public:
ICEDestBox( QWidget *_parent = NULL ); ICEDestBox( QWidget *_parent = NULL );
virtual QString getMRL( const QString& ); QString getMRL( const QString& ) Q_DECL_OVERRIDE;
private: private:
QLineEdit *ICEEdit; QLineEdit *ICEEdit;
QLineEdit *ICEMountEdit; QLineEdit *ICEMountEdit;
......
...@@ -50,8 +50,8 @@ private: ...@@ -50,8 +50,8 @@ private:
VLCProfileSelector *profile; VLCProfileSelector *profile;
QString mrl; QString mrl;
private slots: private slots:
virtual void close(); void close() Q_DECL_OVERRIDE;
virtual void cancel(); void cancel() Q_DECL_OVERRIDE;
void fileBrowse(); void fileBrowse();
void setDestinationFileExtension(); void setDestinationFileExtension();
void validate(); void validate();
......
...@@ -106,8 +106,8 @@ private: ...@@ -106,8 +106,8 @@ private:
void DestroyWidget( extension_widget_t *p_widget, bool b_cond = true ); void DestroyWidget( extension_widget_t *p_widget, bool b_cond = true );
protected: protected:
virtual void closeEvent( QCloseEvent* ); void closeEvent( QCloseEvent* ) Q_DECL_OVERRIDE;
virtual void keyPressEvent( QKeyEvent* ); void keyPressEvent( QKeyEvent* ) Q_DECL_OVERRIDE;
private slots: private slots:
int TriggerClick( QObject *object ); int TriggerClick( QObject *object );
......
...@@ -37,8 +37,8 @@ private: ...@@ -37,8 +37,8 @@ private:
virtual ~GotoTimeDialog(); virtual ~GotoTimeDialog();
QTimeEdit *timeEdit; QTimeEdit *timeEdit;
private slots: private slots:
void close(); void close() Q_DECL_OVERRIDE;
void cancel(); void cancel() Q_DECL_OVERRIDE;
void reset(); void reset();
friend class Singleton<GotoTimeDialog>; friend class Singleton<GotoTimeDialog>;
......
...@@ -45,7 +45,7 @@ private: ...@@ -45,7 +45,7 @@ private:
virtual ~HelpDialog(); virtual ~HelpDialog();
public slots: public slots:
virtual void close() { toggleVisible(); } void close() Q_DECL_OVERRIDE { toggleVisible(); }
friend class Singleton<HelpDialog>; friend class Singleton<HelpDialog>;
}; };
...@@ -62,7 +62,7 @@ public slots: ...@@ -62,7 +62,7 @@ public slots:
protected: protected:
bool eventFilter(QObject *obj, QEvent *event); bool eventFilter(QObject *obj, QEvent *event);
virtual void showEvent ( QShowEvent * ); void showEvent ( QShowEvent * ) Q_DECL_OVERRIDE;
private: private:
bool b_advanced; bool b_advanced;
...@@ -93,7 +93,7 @@ private: ...@@ -93,7 +93,7 @@ private:
bool b_checked; bool b_checked;
private slots: private slots:
virtual void close() { toggleVisible(); } void close() Q_DECL_OVERRIDE { toggleVisible(); }
void UpdateOrDownload(); void UpdateOrDownload();
......
...@@ -70,7 +70,7 @@ private slots: ...@@ -70,7 +70,7 @@ private slots:
void updateAllTabs( input_item_t * ); void updateAllTabs( input_item_t * );
void clearAllTabs(); void clearAllTabs();
virtual void close(); void close() Q_DECL_OVERRIDE;
void saveMeta(); void saveMeta();
void updateButtons( int i_tab ); void updateButtons( int i_tab );
......
...@@ -56,7 +56,7 @@ public: ...@@ -56,7 +56,7 @@ public:
void showEvent( QShowEvent *ev ); void showEvent( QShowEvent *ev );
public slots: public slots:
virtual void close() { play(); }; void close() Q_DECL_OVERRIDE { play(); };
}; };
......
...@@ -46,7 +46,7 @@ public: ...@@ -46,7 +46,7 @@ public:
bool hasPlaylistWidget(); bool hasPlaylistWidget();
protected: protected:
virtual void hideEvent( QHideEvent * ); void hideEvent( QHideEvent * ) Q_DECL_OVERRIDE;
private: private:
PlaylistWidget *playlistWidget; PlaylistWidget *playlistWidget;
......
...@@ -87,7 +87,7 @@ public: ...@@ -87,7 +87,7 @@ public:
}; };
protected: protected:
virtual void keyPressEvent( QKeyEvent *keyEvent ); void keyPressEvent( QKeyEvent *keyEvent ) Q_DECL_OVERRIDE;
private: private:
PluginTab( intf_thread_t *p_intf ); PluginTab( intf_thread_t *p_intf );
...@@ -108,7 +108,7 @@ class ExtensionTab : public QVLCFrame ...@@ -108,7 +108,7 @@ class ExtensionTab : public QVLCFrame
Q_OBJECT Q_OBJECT
protected: protected:
virtual void keyPressEvent( QKeyEvent *keyEvent ); void keyPressEvent( QKeyEvent *keyEvent ) Q_DECL_OVERRIDE;
private: private:
ExtensionTab( intf_thread_t *p_intf ); ExtensionTab( intf_thread_t *p_intf );
...@@ -195,10 +195,10 @@ public: ...@@ -195,10 +195,10 @@ public:
FilenameRole FilenameRole
}; };
virtual QVariant data( const QModelIndex& index, int role ) const; QVariant data( const QModelIndex& index, int role ) const Q_DECL_OVERRIDE;
virtual QModelIndex index( int row, int column = 0, QModelIndex index( int row, int column = 0,
const QModelIndex& = QModelIndex() ) const; const QModelIndex& = QModelIndex() ) const Q_DECL_OVERRIDE;
virtual int rowCount( const QModelIndex& = QModelIndex() ) const; int rowCount( const QModelIndex& = QModelIndex() ) const Q_DECL_OVERRIDE;
protected slots: protected slots:
void updateList(); void updateList();
...@@ -214,12 +214,12 @@ class AddonsListModel: public ExtensionListModel ...@@ -214,12 +214,12 @@ class AddonsListModel: public ExtensionListModel
public: public:
AddonsListModel( AddonsManager *AM, QObject *parent = 0 ); AddonsListModel( AddonsManager *AM, QObject *parent = 0 );
virtual QVariant data( const QModelIndex& index, int role ) const; QVariant data( const QModelIndex& index, int role ) const Q_DECL_OVERRIDE;
virtual QModelIndex index( int row, int column = 0, QModelIndex index( int row, int column = 0,
const QModelIndex& = QModelIndex() ) const; const QModelIndex& = QModelIndex() ) const Q_DECL_OVERRIDE;
virtual int rowCount( const QModelIndex& = QModelIndex() ) const; int rowCount( const QModelIndex& = QModelIndex() ) const Q_DECL_OVERRIDE;
virtual Qt::ItemFlags flags( const QModelIndex &index ) const; Qt::ItemFlags flags( const QModelIndex &index ) const Q_DECL_OVERRIDE;
virtual bool setData( const QModelIndex &index, const QVariant &value, int role ); bool setData( const QModelIndex &index, const QVariant &value, int role ) Q_DECL_OVERRIDE;
enum enum
{ {
...@@ -268,7 +268,7 @@ public slots: ...@@ -268,7 +268,7 @@ public slots:
virtual void setStatusFilter( int ); virtual void setStatusFilter( int );
protected: protected:
virtual bool filterAcceptsRow( int, const QModelIndex & ) const; bool filterAcceptsRow( int, const QModelIndex & ) const Q_DECL_OVERRIDE;
private: private:
int i_type_filter; int i_type_filter;
...@@ -283,13 +283,13 @@ public: ...@@ -283,13 +283,13 @@ public:
ExtensionItemDelegate( QObject *parent ); ExtensionItemDelegate( QObject *parent );
virtual ~ExtensionItemDelegate(); virtual ~ExtensionItemDelegate();
virtual void paint( QPainter *painter, void paint( QPainter *painter,
const QStyleOptionViewItem &option, const QStyleOptionViewItem &option,
const QModelIndex &index ) const; const QModelIndex &index ) const Q_DECL_OVERRIDE;
virtual QSize sizeHint( const QStyleOptionViewItem &option, QSize sizeHint( const QStyleOptionViewItem &option,
const QModelIndex &index ) const; const QModelIndex &index ) const Q_DECL_OVERRIDE;
virtual void initStyleOption( QStyleOptionViewItem *option, void initStyleOption( QStyleOptionViewItem *option,
const QModelIndex &index ) const; const QModelIndex &index ) const Q_DECL_OVERRIDE;
protected: protected:
QMargins margins; QMargins margins;
...@@ -304,15 +304,15 @@ public: ...@@ -304,15 +304,15 @@ public:
AddonItemDelegate( QObject *parent ); AddonItemDelegate( QObject *parent );
~AddonItemDelegate(); ~AddonItemDelegate();
virtual void paint( QPainter *painter, void paint( QPainter *painter,
const QStyleOptionViewItem &option, const QStyleOptionViewItem &option,
const QModelIndex &index ) const; const QModelIndex &index ) const Q_DECL_OVERRIDE;
virtual QSize sizeHint( const QStyleOptionViewItem &option, QSize sizeHint( const QStyleOptionViewItem &option,
const QModelIndex &index ) const; const QModelIndex &index ) const Q_DECL_OVERRIDE;
virtual QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const; QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const; void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const; void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const Q_DECL_OVERRIDE;
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const; void setEditorData(QWidget *editor, const QModelIndex &index) const Q_DECL_OVERRIDE;
void setAnimator( DelegateAnimationHelper *animator ); void setAnimator( DelegateAnimationHelper *animator );
......
...@@ -59,8 +59,8 @@ public slots: ...@@ -59,8 +59,8 @@ public slots:
void setBarsTopPosition( int b ); void setBarsTopPosition( int b );
protected: protected:
virtual void paintEvent(QPaintEvent *); void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;
virtual bool eventFilter(QObject *obj, QEvent *event); bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
private: private:
QWidget * bars[3]; QWidget * bars[3];
...@@ -73,7 +73,7 @@ class WidgetListing : public QListWidget ...@@ -73,7 +73,7 @@ class WidgetListing : public QListWidget
public: public:
WidgetListing( intf_thread_t *, QWidget *_parent = 0 ); WidgetListing( intf_thread_t *, QWidget *_parent = 0 );
protected: protected:
virtual void startDrag( Qt::DropActions /*supportedActions*/ ); void startDrag( Qt::DropActions /*supportedActions*/ ) Q_DECL_OVERRIDE;
private: private:
ToolbarEditDialog *parent; ToolbarEditDialog *parent;
}; };
...@@ -114,16 +114,16 @@ public: ...@@ -114,16 +114,16 @@ public:
void resetLine( const QString& ); void resetLine( const QString& );
protected: protected:
virtual void createAndAddWidget( QBoxLayout *controlLayout, int i_index, void createAndAddWidget( QBoxLayout *controlLayout, int i_index,
buttonType_e i_type, int i_option ); buttonType_e i_type, int i_option ) Q_DECL_OVERRIDE;
virtual void dragEnterEvent ( QDragEnterEvent * event ); void dragEnterEvent ( QDragEnterEvent * event ) Q_DECL_OVERRIDE;
virtual void dragMoveEvent(QDragMoveEvent *event); void dragMoveEvent(QDragMoveEvent *event) Q_DECL_OVERRIDE;
virtual void dropEvent ( QDropEvent * event ); void dropEvent ( QDropEvent * event ) Q_DECL_OVERRIDE;
virtual void dragLeaveEvent ( QDragLeaveEvent * event ); void dragLeaveEvent ( QDragLeaveEvent * event ) Q_DECL_OVERRIDE;
virtual void doAction( int ); virtual void doAction( int );
virtual bool eventFilter( QObject *, QEvent * ); bool eventFilter( QObject *, QEvent * ) Q_DECL_OVERRIDE;
private: private:
struct doubleInt struct doubleInt
......
...@@ -187,7 +187,7 @@ public: ...@@ -187,7 +187,7 @@ public:
VLMBroadcast( const QString& name, const QString& input, VLMBroadcast( const QString& name, const QString& input,
const QString& inputOptions, const QString& output, const QString& inputOptions, const QString& output,
bool _enable, bool _loop, VLMDialog *parent ); bool _enable, bool _loop, VLMDialog *parent );
void update(); void update() Q_DECL_OVERRIDE;
private: private:
bool b_looped; bool b_looped;
bool b_playing; bool b_playing;
......
...@@ -96,15 +96,15 @@ protected: ...@@ -96,15 +96,15 @@ protected:
#ifdef _WIN32 #ifdef _WIN32
virtual bool winEvent( MSG *, long * ); virtual bool winEvent( MSG *, long * );
#endif #endif
virtual void changeEvent( QEvent * ); void changeEvent( QEvent * ) Q_DECL_OVERRIDE;
virtual void dropEvent( QDropEvent *); void dropEvent( QDropEvent *) Q_DECL_OVERRIDE;
virtual void dragEnterEvent( QDragEnterEvent * ); void dragEnterEvent( QDragEnterEvent * ) Q_DECL_OVERRIDE;
virtual void dragMoveEvent( QDragMoveEvent * ); void dragMoveEvent( QDragMoveEvent * ) Q_DECL_OVERRIDE;
virtual void dragLeaveEvent( QDragLeaveEvent * ); void dragLeaveEvent( QDragLeaveEvent * ) Q_DECL_OVERRIDE;
virtual void closeEvent( QCloseEvent *); void closeEvent( QCloseEvent *) Q_DECL_OVERRIDE;
virtual void keyPressEvent( QKeyEvent *); void keyPressEvent( QKeyEvent *) Q_DECL_OVERRIDE;
virtual void wheelEvent( QWheelEvent * ); void wheelEvent( QWheelEvent * ) Q_DECL_OVERRIDE;
virtual bool eventFilter(QObject *, QEvent *); bool eventFilter(QObject *, QEvent *) Q_DECL_OVERRIDE;
private: private:
/* Main Widgets Creation */ /* Main Widgets Creation */
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#ifndef SEEKSTYLE_HPP #ifndef SEEKSTYLE_HPP
#define SEEKSTYLE_HPP #define SEEKSTYLE_HPP
#include "qt4.hpp"
#include <inttypes.h> #include <inttypes.h>
#include <QProxyStyle> #include <QProxyStyle>
#include <QStyleOptionSlider> #include <QStyleOptionSlider>
...@@ -44,8 +46,8 @@ public: ...@@ -44,8 +46,8 @@ public:
public: public:
SeekStyle(); SeekStyle();
virtual int pixelMetric(PixelMetric metric, const QStyleOption * option = 0, const QWidget * widget = 0) const; int pixelMetric(PixelMetric metric, const QStyleOption * option = 0, const QWidget * widget = 0) const Q_DECL_OVERRIDE;
virtual void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget) const; void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget) const Q_DECL_OVERRIDE;
}; };
#endif // SEEKSTYLE_HPP #endif // SEEKSTYLE_HPP
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
#ifndef ANIMATORS_HPP #ifndef ANIMATORS_HPP
#define ANIMATORS_HPP #define ANIMATORS_HPP
#include "qt4.hpp"
#include <QObject> #include <QObject>
#include <QList> #include <QList>
#include <QString> #include <QString>
...@@ -38,13 +40,13 @@ class BasicAnimator : public QAbstractAnimation ...@@ -38,13 +40,13 @@ class BasicAnimator : public QAbstractAnimation
public: public:
BasicAnimator( QObject *parent = 0 ); BasicAnimator( QObject *parent = 0 );
void setFps( int _fps ) { fps = _fps; interval = 1000.0 / fps; } void setFps( int _fps ) { fps = _fps; interval = 1000.0 / fps; }
virtual int duration() const { return 1000; } int duration() const Q_DECL_OVERRIDE { return 1000; }
signals: signals:
void frameChanged(); void frameChanged();
protected: protected:
virtual void updateCurrentTime ( int msecs ); void updateCurrentTime ( int msecs ) Q_DECL_OVERRIDE;
int fps; int fps;
int interval; int interval;
int current_frame; int current_frame;
...@@ -62,11 +64,11 @@ class PixmapAnimator : public BasicAnimator ...@@ -62,11 +64,11 @@ class PixmapAnimator : public BasicAnimator
public: public:
PixmapAnimator( QWidget *parent, QList<QString> _frames ); PixmapAnimator( QWidget *parent, QList<QString> _frames );
virtual int duration() const { return interval * pixmaps.count(); } int duration() const Q_DECL_OVERRIDE { return interval * pixmaps.count(); }
virtual ~PixmapAnimator(); virtual ~PixmapAnimator();
QPixmap *getPixmap() { return currentPixmap; } QPixmap *getPixmap() { return currentPixmap; }
protected: protected:
virtual void updateCurrentTime ( int msecs ); void updateCurrentTime ( int msecs ) Q_DECL_OVERRIDE;
QList<QPixmap *> pixmaps; QList<QPixmap *> pixmaps;
QPixmap *currentPixmap; QPixmap *currentPixmap;
signals: signals:
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <QDial> #include <QDial>
#include "animators.hpp" #include "animators.hpp"
#include "qt4.hpp"
class QPixmap; class QPixmap;
class QWidget; class QWidget;
...@@ -47,9 +48,9 @@ class QFramelessButton : public QPushButton ...@@ -47,9 +48,9 @@ class QFramelessButton : public QPushButton
Q_OBJECT Q_OBJECT
public: public:
QFramelessButton( QWidget *parent = NULL ); QFramelessButton( QWidget *parent = NULL );
virtual QSize sizeHint() const { return iconSize(); } QSize sizeHint() const Q_DECL_OVERRIDE { return iconSize(); }
protected: protected:
virtual void paintEvent( QPaintEvent * event ); void paintEvent( QPaintEvent * event ) Q_DECL_OVERRIDE;
}; };
class VLCQDial : public QDial class VLCQDial : public QDial
...@@ -58,7 +59,7 @@ class VLCQDial : public QDial ...@@ -58,7 +59,7 @@ class VLCQDial : public QDial
public: public:
VLCQDial( QWidget *parent = NULL ); VLCQDial( QWidget *parent = NULL );
protected: protected:
virtual void paintEvent( QPaintEvent * event ); void paintEvent( QPaintEvent * event ) Q_DECL_OVERRIDE;
}; };
class QToolButtonExt : public QToolButton class QToolButtonExt : public QToolButton
...@@ -85,7 +86,7 @@ public: ...@@ -85,7 +86,7 @@ public:
QWidget * parent = NULL ); QWidget * parent = NULL );
void setElideMode( Qt::TextElideMode ); void setElideMode( Qt::TextElideMode );
protected: protected:
virtual void paintEvent( QPaintEvent * event ); void paintEvent( QPaintEvent * event ) Q_DECL_OVERRIDE;
private: private:
Qt::TextElideMode elideMode; Qt::TextElideMode elideMode;
}; };
...@@ -107,9 +108,9 @@ class QVLCDebugLevelSpinBox : public QSpinBox ...@@ -107,9 +108,9 @@ class QVLCDebugLevelSpinBox : public QSpinBox
public: public:
QVLCDebugLevelSpinBox( QWidget *parent ) : QSpinBox( parent ) { }; QVLCDebugLevelSpinBox( QWidget *parent ) : QSpinBox( parent ) { };
protected: protected:
virtual QString textFromValue( int ) const; QString textFromValue( int ) const Q_DECL_OVERRIDE;
/* QVLCDebugLevelSpinBox is read-only */ /* QVLCDebugLevelSpinBox is read-only */
virtual int valueFromText( const QString& ) const { return -1; } int valueFromText( const QString& ) const Q_DECL_OVERRIDE { return -1; }
}; };
/** This spinning icon, to the colors of the VLC cone, will show /** This spinning icon, to the colors of the VLC cone, will show
......
...@@ -59,18 +59,18 @@ public: ...@@ -59,18 +59,18 @@ public:
void setChapters( SeekPoints * ); void setChapters( SeekPoints * );
protected: protected:
virtual void mouseMoveEvent( QMouseEvent *event ); void mouseMoveEvent( QMouseEvent *event ) Q_DECL_OVERRIDE;
virtual void mousePressEvent( QMouseEvent* event ); void mousePressEvent( QMouseEvent* event ) Q_DECL_OVERRIDE;
virtual void mouseReleaseEvent( QMouseEvent *event ); void mouseReleaseEvent( QMouseEvent *event ) Q_DECL_OVERRIDE;
virtual void wheelEvent( QWheelEvent *event ); void wheelEvent( QWheelEvent *event ) Q_DECL_OVERRIDE;
virtual void enterEvent( QEvent * ); void enterEvent( QEvent * ) Q_DECL_OVERRIDE;
virtual void leaveEvent( QEvent * ); void leaveEvent( QEvent * ) Q_DECL_OVERRIDE;
virtual void hideEvent( QHideEvent * ); void hideEvent( QHideEvent * ) Q_DECL_OVERRIDE;
virtual void paintEvent(QPaintEvent *ev); void paintEvent(QPaintEvent *ev) Q_DECL_OVERRIDE;
virtual bool eventFilter( QObject *obj, QEvent *event ); bool eventFilter( QObject *obj, QEvent *event ) Q_DECL_OVERRIDE;
virtual QSize sizeHint() const; QSize sizeHint() const Q_DECL_OVERRIDE;
void processReleasedButton(); void processReleasedButton();
qreal handleOpacity() const; qreal handleOpacity() const;
...@@ -137,11 +137,11 @@ protected: ...@@ -137,11 +137,11 @@ protected:
const static int paddingL = 3; const static int paddingL = 3;
const static int paddingR = 2; const static int paddingR = 2;
virtual void paintEvent( QPaintEvent *); void paintEvent( QPaintEvent *) Q_DECL_OVERRIDE;
virtual void wheelEvent( QWheelEvent *event ); void wheelEvent( QWheelEvent *event ) Q_DECL_OVERRIDE;
virtual void mousePressEvent( QMouseEvent * ); void mousePressEvent( QMouseEvent * ) Q_DECL_OVERRIDE;
virtual void mouseMoveEvent( QMouseEvent * ); void mouseMoveEvent( QMouseEvent * ) Q_DECL_OVERRIDE;
virtual void mouseReleaseEvent( QMouseEvent * ); void mouseReleaseEvent( QMouseEvent * ) Q_DECL_OVERRIDE;
void processReleasedButton(); void processReleasedButton();
......
...@@ -315,8 +315,8 @@ public: ...@@ -315,8 +315,8 @@ public:
PictureFlowSoftwareRenderer(); PictureFlowSoftwareRenderer();
~PictureFlowSoftwareRenderer(); ~PictureFlowSoftwareRenderer();
virtual void init(); void init() Q_DECL_OVERRIDE;
virtual void paint(); void paint() Q_DECL_OVERRIDE;
private: private:
QSize size; QSize size;
......
...@@ -133,7 +133,7 @@ protected: ...@@ -133,7 +133,7 @@ protected:
{ {
hide(); hide();
} }
virtual void keyPressEvent( QKeyEvent *keyEvent ) void keyPressEvent( QKeyEvent *keyEvent ) Q_DECL_OVERRIDE
{ {
if( keyEvent->key() == Qt::Key_Escape ) if( keyEvent->key() == Qt::Key_Escape )
{ {
...@@ -171,7 +171,7 @@ protected: ...@@ -171,7 +171,7 @@ protected:
{ {
hide(); hide();
} }
virtual void keyPressEvent( QKeyEvent *keyEvent ) void keyPressEvent( QKeyEvent *keyEvent ) Q_DECL_OVERRIDE
{ {
if( keyEvent->key() == Qt::Key_Escape ) if( keyEvent->key() == Qt::Key_Escape )
{ {
......
...@@ -58,14 +58,14 @@ class ClickLineEdit : public QLineEdit ...@@ -58,14 +58,14 @@ class ClickLineEdit : public QLineEdit
Q_PROPERTY( QString clickMessage READ placeholderText WRITE setPlaceholderText ) Q_PROPERTY( QString clickMessage READ placeholderText WRITE setPlaceholderText )
public: public:
ClickLineEdit( const QString &msg, QWidget *parent ); ClickLineEdit( const QString &msg, QWidget *parent );
void setPlaceholderText( const QString &msg ); void setPlaceholderText( const QString &msg ) Q_DECL_OVERRIDE;
const QString& placeholderText() const { return mClickMessage; } const QString& placeholderText() const Q_DECLARE_OVERRIDE { return mClickMessage; }
virtual void setText( const QString& txt ); void setText( const QString& txt ) Q_DECLARE_OVERRIDE;
protected: protected:
virtual void paintEvent( QPaintEvent *e ); void paintEvent( QPaintEvent *e ) Q_DECL_OVERRIDE;
virtual void dropEvent( QDropEvent *ev ); void dropEvent( QDropEvent *ev ) Q_DECL_OVERRIDE;
virtual void focusInEvent( QFocusEvent *ev ); void focusInEvent( QFocusEvent *ev ) Q_DECL_OVERRIDE;
virtual void focusOutEvent( QFocusEvent *ev ); void focusOutEvent( QFocusEvent *ev ) Q_DECL_OVERRIDE;
private: private:
QString mClickMessage; QString mClickMessage;
bool mDrawClickMsg; bool mDrawClickMsg;
...@@ -112,7 +112,7 @@ public: ...@@ -112,7 +112,7 @@ public:
SearchLineEdit(QWidget *parent = 0); SearchLineEdit(QWidget *parent = 0);
virtual ~SearchLineEdit() {} virtual ~SearchLineEdit() {}
virtual QSize sizeHint() const { return QSize(150, 40); } QSize sizeHint() const Q_DECL_OVERRIDE { return QSize(150, 40); }
public slots: public slots:
void clear() {} void clear() {}
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#ifndef TIMETOOLTIP_H #ifndef TIMETOOLTIP_H
#define TIMETOOLTIP_H #define TIMETOOLTIP_H
#include "qt4.hpp"
#include <QWidget> #include <QWidget>
#include <QBitmap> #include <QBitmap>
...@@ -40,7 +42,7 @@ public: ...@@ -40,7 +42,7 @@ public:
virtual void show(); virtual void show();
protected: protected:
virtual void paintEvent( QPaintEvent * ); void paintEvent( QPaintEvent * ) Q_DECL_OVERRIDE;
private: private:
void adjustPosition(); void adjustPosition();
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
#ifndef VALIDATORS_HPP #ifndef VALIDATORS_HPP
#define VALIDATORS_HPP #define VALIDATORS_HPP
#include "qt4.hpp"
#include <QValidator> #include <QValidator>
class UrlValidator : public QValidator class UrlValidator : public QValidator
...@@ -28,8 +30,8 @@ class UrlValidator : public QValidator ...@@ -28,8 +30,8 @@ class UrlValidator : public QValidator
Q_OBJECT Q_OBJECT
public: public:
UrlValidator( QObject *parent ) : QValidator( parent ) { } UrlValidator( QObject *parent ) : QValidator( parent ) { }
virtual QValidator::State validate( QString&, int& ) const; QValidator::State validate( QString&, int& ) const Q_DECL_OVERRIDE;
virtual void fixup ( QString & input ) const; void fixup ( QString & input ) const Q_DECL_OVERRIDE;
}; };
#endif // VALIDATORS_HPP #endif // VALIDATORS_HPP
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