Commit 82352081 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: playlist views, correct virtualness

parent 415dab3b
...@@ -46,8 +46,8 @@ class PlIconViewItemDelegate : public AbstractPlViewItemDelegate ...@@ -46,8 +46,8 @@ class PlIconViewItemDelegate : public AbstractPlViewItemDelegate
public: public:
PlIconViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate( parent ) {} PlIconViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate( parent ) {}
void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const; virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
QSize sizeHint ( const QStyleOptionViewItem & option = QStyleOptionViewItem(), virtual QSize sizeHint ( const QStyleOptionViewItem & option = QStyleOptionViewItem(),
const QModelIndex & index = QModelIndex() ) const; const QModelIndex & index = QModelIndex() ) const;
}; };
...@@ -58,8 +58,8 @@ class PlListViewItemDelegate : public AbstractPlViewItemDelegate ...@@ -58,8 +58,8 @@ class PlListViewItemDelegate : public AbstractPlViewItemDelegate
public: public:
PlListViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate(parent) {} PlListViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate(parent) {}
void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const; virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const; virtual QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const;
}; };
class PlIconView : public QListView class PlIconView : public QListView
...@@ -68,9 +68,9 @@ class PlIconView : public QListView ...@@ -68,9 +68,9 @@ class PlIconView : public QListView
public: public:
PlIconView( PLModel *model, QWidget *parent = 0 ); PlIconView( PLModel *model, QWidget *parent = 0 );
private: protected:
void startDrag ( Qt::DropActions supportedActions ); virtual void startDrag ( Qt::DropActions supportedActions );
void dragMoveEvent ( QDragMoveEvent * event ); virtual void dragMoveEvent ( QDragMoveEvent * event );
}; };
class PlListView : public QListView class PlListView : public QListView
...@@ -79,20 +79,20 @@ class PlListView : public QListView ...@@ -79,20 +79,20 @@ class PlListView : public QListView
public: public:
PlListView( PLModel *model, QWidget *parent = 0 ); PlListView( PLModel *model, QWidget *parent = 0 );
private: protected:
void startDrag ( Qt::DropActions supportedActions ); virtual void startDrag ( Qt::DropActions supportedActions );
void dragMoveEvent ( QDragMoveEvent * event ); virtual void dragMoveEvent ( QDragMoveEvent * event );
void keyPressEvent( QKeyEvent *event ); virtual void keyPressEvent( QKeyEvent *event );
}; };
class PlTreeView : public QTreeView class PlTreeView : public QTreeView
{ {
Q_OBJECT Q_OBJECT
private: protected:
void startDrag ( Qt::DropActions supportedActions ); virtual void startDrag ( Qt::DropActions supportedActions );
void dragMoveEvent ( QDragMoveEvent * event ); virtual void dragMoveEvent ( QDragMoveEvent * event );
void keyPressEvent( QKeyEvent *event ); virtual void keyPressEvent( QKeyEvent *event );
}; };
#endif #endif
......
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