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

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 @@
# include <config.h>
#endif
#include "qt4.hpp"
#include <QObject>
#include <vlc_common.h>
......@@ -47,7 +49,7 @@ class QVLCPointer : public QVLCVariable
{
Q_OBJECT
private:
virtual void trigger (vlc_value_t, vlc_value_t);
void trigger (vlc_value_t, vlc_value_t) Q_DECL_OVERRIDE;
public:
QVLCPointer (vlc_object_t *, const char *, bool inherit = false);
......@@ -62,7 +64,7 @@ class QVLCInteger : public QVLCVariable
{
Q_OBJECT
private:
virtual void trigger (vlc_value_t, vlc_value_t);
void trigger (vlc_value_t, vlc_value_t) Q_DECL_OVERRIDE;
public:
QVLCInteger (vlc_object_t *, const char *, bool inherit = false);
......@@ -77,7 +79,7 @@ class QVLCBool : public QVLCVariable
{
Q_OBJECT
private:
virtual void trigger (vlc_value_t, vlc_value_t);
void trigger (vlc_value_t, vlc_value_t) Q_DECL_OVERRIDE;
public:
QVLCBool (vlc_object_t *, const char *, bool inherit = false);
......@@ -92,7 +94,7 @@ class QVLCFloat : public QVLCVariable
{
Q_OBJECT
private:
virtual void trigger (vlc_value_t, vlc_value_t);
void trigger (vlc_value_t, vlc_value_t) Q_DECL_OVERRIDE;
public:
QVLCFloat (vlc_object_t *, const char *, bool inherit = false);
......@@ -107,7 +109,7 @@ class QVLCString : public QVLCVariable
{
Q_OBJECT
private:
virtual void trigger (vlc_value_t, vlc_value_t);
void trigger (vlc_value_t, vlc_value_t) Q_DECL_OVERRIDE;
public:
QVLCString (vlc_object_t *, const char *, bool inherit = false);
......
......@@ -275,14 +275,14 @@ public slots:
protected:
friend class MainInterface;
virtual void mouseMoveEvent( QMouseEvent *event );
virtual void mousePressEvent( QMouseEvent *event );
virtual void mouseReleaseEvent( QMouseEvent *event );
virtual void enterEvent( QEvent *event );
virtual void leaveEvent( QEvent *event );
virtual void keyPressEvent( QKeyEvent *event );
virtual void customEvent( QEvent *event );
void mouseMoveEvent( QMouseEvent *event ) Q_DECL_OVERRIDE;
void mousePressEvent( QMouseEvent *event ) Q_DECL_OVERRIDE;
void mouseReleaseEvent( QMouseEvent *event ) Q_DECL_OVERRIDE;
void enterEvent( QEvent *event ) Q_DECL_OVERRIDE;
void leaveEvent( QEvent *event ) Q_DECL_OVERRIDE;
void keyPressEvent( QKeyEvent *event ) Q_DECL_OVERRIDE;
void customEvent( QEvent *event ) Q_DECL_OVERRIDE;
private slots:
void showFSC();
......
......@@ -102,7 +102,7 @@ public:
void setMuted( bool );
protected:
virtual bool eventFilter( QObject *obj, QEvent *e );
bool eventFilter( QObject *obj, QEvent *e ) Q_DECL_OVERRIDE;
private:
intf_thread_t *p_intf;
......
......@@ -23,6 +23,8 @@
#ifndef EPGCHANNELS_HPP
#define EPGCHANNELS_HPP
#include "qt4.hpp"
#include <QWidget>
class EPGView;
......@@ -39,7 +41,7 @@ public slots:
void removeChannel( QString );
protected:
virtual void paintEvent( QPaintEvent *event );
void paintEvent( QPaintEvent *event ) Q_DECL_OVERRIDE;
private:
EPGView *m_epgView;
......
......@@ -40,8 +40,8 @@ class EPGItem : public QGraphicsItem
public:
EPGItem( vlc_epg_event_t *data, EPGView *view );
virtual QRectF boundingRect() const;
virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0 );
QRectF boundingRect() const Q_DECL_OVERRIDE;
void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0 ) Q_DECL_OVERRIDE;
const QDateTime& start() const;
QDateTime end() const;
......@@ -60,9 +60,9 @@ public:
bool playsAt( const QDateTime & ) const;
protected:
virtual void focusInEvent( QFocusEvent * event );
virtual void hoverEnterEvent ( QGraphicsSceneHoverEvent * );
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * );
void focusInEvent( QFocusEvent * event ) Q_DECL_OVERRIDE;
void hoverEnterEvent ( QGraphicsSceneHoverEvent * ) Q_DECL_OVERRIDE;
void hoverLeaveEvent ( QGraphicsSceneHoverEvent * ) Q_DECL_OVERRIDE;
private:
EPGView *m_view;
......
......@@ -24,6 +24,8 @@
#ifndef EPGRULER_H
#define EPGRULER_H
#include "qt4.hpp"
#include <QWidget>
#include <QDateTime>
......@@ -42,7 +44,7 @@ public slots:
void setOffset( int offset );
protected:
virtual void paintEvent( QPaintEvent *event );
void paintEvent( QPaintEvent *event ) Q_DECL_OVERRIDE;
private:
qreal m_scale;
......
......@@ -31,6 +31,7 @@
#include <vlc_common.h>
#include "qt4.hpp"
#include "ui/equalizer.h"
#include "ui/video_effects.h"
......@@ -71,7 +72,7 @@ class ExtV4l2 : public QWidget
public:
ExtV4l2( intf_thread_t *, QWidget * );
virtual void showEvent( QShowEvent *event );
void showEvent( QShowEvent *event ) Q_DECL_OVERRIDE;
private:
intf_thread_t *p_intf;
......@@ -156,13 +157,13 @@ public:
const slider_data_t *p_data, int index );
protected:
virtual float initialValue();
float initialValue() Q_DECL_OVERRIDE;
int index;
QStringList getBandsFromAout() const;
public slots:
virtual void onValueChanged( int i ) const;
virtual void writeToConfig() const;
void onValueChanged( int i ) const Q_DECL_OVERRIDE;
void writeToConfig() const Q_DECL_OVERRIDE;
};
class Equalizer: public AudioFilterControlWidget
......@@ -173,10 +174,10 @@ public:
Equalizer( intf_thread_t *, QWidget * );
protected:
virtual void build();
void build() Q_DECL_OVERRIDE;
protected slots:
virtual void setSaveToConfig( bool );
void setSaveToConfig( bool ) Q_DECL_OVERRIDE;
private:
FilterSliderData *preamp;
......
......@@ -30,6 +30,8 @@
# include "config.h"
#endif
#include "qt4.hpp"
#include <vlc_common.h>
#include <QWidget>
......@@ -113,7 +115,7 @@ class InputStatsPanel: public QWidget
public:
InputStatsPanel( QWidget * );
protected:
virtual void hideEvent( QHideEvent * );
void hideEvent( QHideEvent * ) Q_DECL_OVERRIDE;
private:
QTreeWidget *StatsTree;
QTreeWidgetItem *input;
......
......@@ -64,7 +64,7 @@ public:
void sync( void );
protected:
virtual QPaintEngine *paintEngine() const
QPaintEngine *paintEngine() const Q_DECL_OVERRIDE
{
return NULL;
}
......@@ -95,10 +95,10 @@ private:
bool b_expandPixmap;
bool b_withart;
QPropertyAnimation *fadeAnimation;
virtual void contextMenuEvent( QContextMenuEvent *event );
void contextMenuEvent( QContextMenuEvent *event ) Q_DECL_OVERRIDE;
protected:
void paintEvent( QPaintEvent *e );
virtual void showEvent( QShowEvent * e );
void paintEvent( QPaintEvent *e ) Q_DECL_OVERRIDE;
void showEvent( QShowEvent * e ) Q_DECL_OVERRIDE;
static const int MARGIN = 5;
QString defaultArt;
public slots:
......@@ -118,10 +118,10 @@ public slots:
void animate();
protected:
void paintEvent( QPaintEvent *e );
void showEvent( QShowEvent *e );
void hideEvent( QHideEvent * );
void resizeEvent( QResizeEvent * );
void paintEvent( QPaintEvent *e ) Q_DECL_OVERRIDE;
void showEvent( QShowEvent *e ) Q_DECL_OVERRIDE;
void hideEvent( QHideEvent * ) Q_DECL_OVERRIDE;
void resizeEvent( QResizeEvent * ) Q_DECL_OVERRIDE;
private slots:
void spawnFlakes();
......@@ -161,7 +161,7 @@ class ClickableQLabel : public QLabel
{
Q_OBJECT
public:
virtual void mouseDoubleClickEvent( QMouseEvent *event )
void mouseDoubleClickEvent( QMouseEvent *event ) Q_DECL_OVERRIDE
{
Q_UNUSED( event );
emit doubleClicked();
......@@ -183,13 +183,13 @@ public:
TimeLabel( intf_thread_t *_p_intf, TimeLabel::Display _displayType = TimeLabel::Both );
protected:
virtual void mousePressEvent( QMouseEvent *event )
void mousePressEvent( QMouseEvent *event ) Q_DECL_OVERRIDE
{
if( displayType == TimeLabel::Elapsed ) return;
toggleTimeDisplay();
event->accept();
}
virtual void mouseDoubleClickEvent( QMouseEvent *event )
void mouseDoubleClickEvent( QMouseEvent *event ) Q_DECL_OVERRIDE
{
if( displayType != TimeLabel::Both ) return;
event->accept();
......@@ -218,7 +218,7 @@ public:
virtual ~SpeedLabel();
protected:
virtual void mousePressEvent ( QMouseEvent * event )
void mousePressEvent ( QMouseEvent * event ) Q_DECL_OVERRIDE
{
showSpeedMenu( event->pos() );
}
......@@ -263,7 +263,7 @@ public:
virtual ~CoverArtLabel();
protected:
virtual void mouseDoubleClickEvent( QMouseEvent *event )
void mouseDoubleClickEvent( QMouseEvent *event ) Q_DECL_OVERRIDE
{
if( ! p_item && qobject_cast<MetaPanel *>(this->window()) == NULL )
{
......
......@@ -102,7 +102,7 @@ class FileOpenPanel: public OpenPanel
public:
FileOpenPanel( QWidget *, intf_thread_t * );
virtual ~FileOpenPanel();
virtual void clear() ;
void clear() Q_DECL_OVERRIDE;
virtual void accept() ;
protected:
bool eventFilter(QObject *, QEvent *event)
......@@ -115,16 +115,16 @@ protected:
}
return false;
}
virtual void dropEvent( QDropEvent *);
virtual void dragEnterEvent( QDragEnterEvent * );
virtual void dragMoveEvent( QDragMoveEvent * );
virtual void dragLeaveEvent( QDragLeaveEvent * );
void dropEvent( QDropEvent *) Q_DECL_OVERRIDE;
void dragEnterEvent( QDragEnterEvent * ) Q_DECL_OVERRIDE;
void dragMoveEvent( QDragMoveEvent * ) Q_DECL_OVERRIDE;
void dragLeaveEvent( QDragLeaveEvent * ) Q_DECL_OVERRIDE;
private:
Ui::OpenFile ui;
FileOpenBox *dialogBox;
void BuildOldPanel();
public slots:
virtual void updateMRL();
void updateMRL() Q_DECL_OVERRIDE;
private slots:
void browseFileSub();
void browseFile();
......@@ -138,14 +138,14 @@ class NetOpenPanel: public OpenPanel
public:
NetOpenPanel( QWidget *, intf_thread_t * );
virtual ~NetOpenPanel();
virtual void clear() ;
virtual void onFocus();
virtual void onAccept();
void clear() Q_DECL_OVERRIDE;
void onFocus() Q_DECL_OVERRIDE;
void onAccept() Q_DECL_OVERRIDE;
private:
Ui::OpenNetwork ui;
bool b_recentList;
public slots:
virtual void updateMRL();
void updateMRL() Q_DECL_OVERRIDE;
};
class DiscOpenPanel: public OpenPanel
......@@ -162,8 +162,8 @@ class DiscOpenPanel: public OpenPanel
public:
DiscOpenPanel( QWidget *, intf_thread_t * );
virtual ~DiscOpenPanel();
virtual void clear() ;
virtual void accept() ;
void clear() Q_DECL_OVERRIDE;
virtual void accept();
#if defined( _WIN32 ) || defined( __OS2__ )
virtual void onFocus();
#endif
......@@ -172,7 +172,7 @@ private:
char *psz_dvddiscpath, *psz_vcddiscpath, *psz_cddadiscpath;
DiscType m_discType;
public slots:
virtual void updateMRL() ;
void updateMRL() Q_DECL_OVERRIDE;
private slots:
void browseDevice();
void updateButtons() ;
......@@ -186,7 +186,7 @@ class CaptureOpenPanel: public OpenPanel
public:
CaptureOpenPanel( QWidget *, intf_thread_t * );
virtual ~CaptureOpenPanel();
virtual void clear() ;
void clear() Q_DECL_OVERRIDE;
private:
Ui::OpenCapture ui;
bool isInitialized;
......@@ -213,7 +213,7 @@ private:
QDoubleSpinBox *screenFPS;
public slots:
virtual void updateMRL();
void updateMRL() Q_DECL_OVERRIDE;
void initialize();
private slots:
void updateButtons();
......
......@@ -72,9 +72,9 @@ private:
protected:
PlaylistWidget( intf_thread_t *_p_i, QWidget * );
virtual void dropEvent( QDropEvent *);
virtual void dragEnterEvent( QDragEnterEvent * );
virtual void closeEvent( QCloseEvent * );
void dropEvent( QDropEvent *) Q_DECL_OVERRIDE;
void dragEnterEvent( QDragEnterEvent * ) Q_DECL_OVERRIDE;
void closeEvent( QCloseEvent * ) Q_DECL_OVERRIDE;
private slots:
void changeView( const QModelIndex& index );
......@@ -100,10 +100,10 @@ public:
SplitterHandle( Qt::Orientation orientation, QSplitter * parent );
protected:
virtual void paintEvent ( QPaintEvent * );
void paintEvent ( QPaintEvent * ) Q_DECL_OVERRIDE;
private:
virtual QSize sizeHint () const;
QSize sizeHint () const Q_DECL_OVERRIDE;
};
#endif /* __APPLE__ */
......@@ -111,9 +111,9 @@ class LocationButton : public QPushButton
{
public:
LocationButton( const QString &, bool bold, bool arrow, QWidget * parent = NULL );
virtual QSize sizeHint() const;
QSize sizeHint() const Q_DECL_OVERRIDE;
protected:
virtual void paintEvent ( QPaintEvent * event );
void paintEvent ( QPaintEvent * event ) Q_DECL_OVERRIDE;
private:
bool b_arrow;
};
......@@ -128,9 +128,9 @@ public:
LocationBar( VLCModel * );
void setIndex( const QModelIndex & );
void setModel( VLCModel * _model ) { model = _model; };
virtual QSize sizeHint() const;
QSize sizeHint() const Q_DECL_OVERRIDE;
protected:
virtual void resizeEvent ( QResizeEvent * event );
void resizeEvent ( QResizeEvent * event ) Q_DECL_OVERRIDE;
private:
void layOut( const QSize& size );
......
......@@ -73,39 +73,39 @@ public:
/*** QAbstractItemModel subclassing ***/
/* Data structure */
virtual QVariant data( const QModelIndex &index, const int role ) const;
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;
virtual Qt::ItemFlags flags( const QModelIndex &index ) const;
virtual QModelIndex index( const int r, const int c, const QModelIndex &parent ) const;
virtual QModelIndex parent( const QModelIndex &index ) const;
QVariant data( const QModelIndex &index, const int role ) const Q_DECL_OVERRIDE;
int rowCount( const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
Qt::ItemFlags flags( const QModelIndex &index ) const Q_DECL_OVERRIDE;
QModelIndex index( const int r, const int c, const QModelIndex &parent ) const Q_DECL_OVERRIDE;
QModelIndex parent( const QModelIndex &index ) const Q_DECL_OVERRIDE;
/* Drag and Drop */
virtual Qt::DropActions supportedDropActions() const;
virtual QMimeData* mimeData( const QModelIndexList &indexes ) const;
virtual bool dropMimeData( const QMimeData *data, Qt::DropAction action,
int row, int column, const QModelIndex &target );
virtual QStringList mimeTypes() const;
Qt::DropActions supportedDropActions() const Q_DECL_OVERRIDE;
QMimeData* mimeData( const QModelIndexList &indexes ) const Q_DECL_OVERRIDE;
bool dropMimeData( const QMimeData *data, Qt::DropAction action,
int row, int column, const QModelIndex &target );
QStringList mimeTypes() const Q_DECL_OVERRIDE;
/* 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 ***/
virtual void rebuild( playlist_item_t * p = NULL );
virtual void doDelete( QModelIndexList selected );
virtual void createNode( QModelIndex index, QString name );
virtual void renameNode( QModelIndex index, QString name );
virtual void removeAll();
void rebuild( playlist_item_t * p = NULL ) Q_DECL_OVERRIDE;
void doDelete( QModelIndexList selected ) Q_DECL_OVERRIDE;
void createNode( QModelIndex index, QString name ) Q_DECL_OVERRIDE;
void renameNode( QModelIndex index, QString name ) Q_DECL_OVERRIDE;
void removeAll();
/* Lookups */
virtual QModelIndex rootIndex() const;
virtual void filter( const QString& search_text, const QModelIndex & root, bool b_recursive );
virtual QModelIndex currentIndex() const;
virtual QModelIndex indexByPLID( const int i_plid, const int c ) const;
virtual QModelIndex indexByInputItemID( const int i_inputitem_id, const int c ) const;
virtual bool isTree() const;
virtual bool canEdit() const;
virtual bool action( QAction *action, const QModelIndexList &indexes );
virtual bool isSupportedAction( actions action, const QModelIndex & ) const;
QModelIndex rootIndex() const Q_DECL_OVERRIDE;
void filter( const QString& search_text, const QModelIndex & root, bool b_recursive ) Q_DECL_OVERRIDE;
QModelIndex currentIndex() const Q_DECL_OVERRIDE;
QModelIndex indexByPLID( const int i_plid, const int c ) const Q_DECL_OVERRIDE;
QModelIndex indexByInputItemID( const int i_inputitem_id, const int c ) const Q_DECL_OVERRIDE;
bool isTree() const Q_DECL_OVERRIDE;
bool canEdit() const Q_DECL_OVERRIDE;
bool action( QAction *action, const QModelIndexList &indexes ) Q_DECL_OVERRIDE;
bool isSupportedAction( actions action, const QModelIndex & ) const Q_DECL_OVERRIDE;
protected:
/* VLCModel subclassing */
......
......@@ -74,7 +74,7 @@ enum ItemAction {
class SelectorActionButton : public QFramelessButton
{
protected:
virtual void paintEvent( QPaintEvent * );
void paintEvent( QPaintEvent * ) Q_DECL_OVERRIDE;
};
class PLSelItem : public QWidget
......@@ -124,11 +124,11 @@ public:
int getCurrentItemCategory();
protected:
virtual void drawBranches ( QPainter *, const QRect &, const QModelIndex & ) const;
virtual void dragMoveEvent ( QDragMoveEvent * event );
virtual bool dropMimeData ( QTreeWidgetItem *, int, const QMimeData *, Qt::DropAction );
virtual QStringList mimeTypes () const;
virtual void wheelEvent(QWheelEvent *e);
void drawBranches ( QPainter *, const QRect &, const QModelIndex & ) const Q_DECL_OVERRIDE;
void dragMoveEvent ( QDragMoveEvent * event ) Q_DECL_OVERRIDE;
bool dropMimeData ( QTreeWidgetItem *, int, const QMimeData *, Qt::DropAction ) Q_DECL_OVERRIDE;
QStringList mimeTypes () const Q_DECL_OVERRIDE;
void wheelEvent(QWheelEvent *e) Q_DECL_OVERRIDE;
private:
void createItems();
......
......@@ -75,7 +75,7 @@ public:
protected:
VLCModel *model;
virtual void wheelEvent( QWheelEvent *e );
void wheelEvent( QWheelEvent *e ) Q_DECL_OVERRIDE;
bool popup( const QPoint &point );
private:
......
......@@ -52,9 +52,9 @@ class PlIconViewItemDelegate : public AbstractPlViewItemDelegate
public:
PlIconViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate( parent ) {}
virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
virtual QSize sizeHint ( const QStyleOptionViewItem & option = QStyleOptionViewItem(),
const QModelIndex & index = QModelIndex() ) const;
void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const Q_DECL_OVERRIDE;
QSize sizeHint ( const QStyleOptionViewItem & option = QStyleOptionViewItem(),
const QModelIndex & index = QModelIndex() ) const Q_DECL_OVERRIDE;
};
class PlListViewItemDelegate : public AbstractPlViewItemDelegate
......@@ -64,8 +64,8 @@ class PlListViewItemDelegate : public AbstractPlViewItemDelegate
public:
PlListViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate(parent) {}
virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
virtual QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const;
void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const Q_DECL_OVERRIDE;
QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const Q_DECL_OVERRIDE;
};
class PlTreeViewItemDelegate : public AbstractPlViewItemDelegate
......@@ -75,7 +75,7 @@ class PlTreeViewItemDelegate : public AbstractPlViewItemDelegate
public:
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
......@@ -84,7 +84,7 @@ class CellPixmapDelegate : public QStyledItemDelegate
public:
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
......@@ -94,9 +94,9 @@ class PlIconView : public QListView
public:
PlIconView( QAbstractItemModel *model, QWidget *parent = 0 );
protected:
virtual void startDrag ( Qt::DropActions supportedActions );
virtual void dragMoveEvent ( QDragMoveEvent * event );
virtual bool viewportEvent ( QEvent * );
void startDrag ( Qt::DropActions supportedActions ) Q_DECL_OVERRIDE;
void dragMoveEvent ( QDragMoveEvent * event ) Q_DECL_OVERRIDE;
bool viewportEvent ( QEvent * ) Q_DECL_OVERRIDE;
};
class PlListView : public QListView
......@@ -106,10 +106,10 @@ class PlListView : public QListView
public:
PlListView( QAbstractItemModel *model, QWidget *parent = 0 );
protected:
virtual void startDrag ( Qt::DropActions supportedActions );
virtual void dragMoveEvent ( QDragMoveEvent * event );
virtual void keyPressEvent( QKeyEvent *event );