[vlc-commits] commit: Qt: playlist views, correct virtualness (Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Wed Oct 27 07:45:23 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Oct 26 21:32:49 2010 +0200| [82352081d233e482fb4064a8ba027a55121c2e59] | committer: Jean-Baptiste Kempf
Qt: playlist views, correct virtualness
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82352081d233e482fb4064a8ba027a55121c2e59
---
modules/gui/qt4/components/playlist/icon_view.hpp | 30 ++++++++++----------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/icon_view.hpp b/modules/gui/qt4/components/playlist/icon_view.hpp
index 64996d8..fe0d2f2 100644
--- a/modules/gui/qt4/components/playlist/icon_view.hpp
+++ b/modules/gui/qt4/components/playlist/icon_view.hpp
@@ -46,8 +46,8 @@ class PlIconViewItemDelegate : public AbstractPlViewItemDelegate
public:
PlIconViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate( parent ) {}
- void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
- QSize sizeHint ( const QStyleOptionViewItem & option = QStyleOptionViewItem(),
+ virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
+ virtual QSize sizeHint ( const QStyleOptionViewItem & option = QStyleOptionViewItem(),
const QModelIndex & index = QModelIndex() ) const;
};
@@ -58,8 +58,8 @@ class PlListViewItemDelegate : public AbstractPlViewItemDelegate
public:
PlListViewItemDelegate(QWidget *parent = 0) : AbstractPlViewItemDelegate(parent) {}
- void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
- QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const;
+ virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
+ virtual QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const;
};
class PlIconView : public QListView
@@ -68,9 +68,9 @@ class PlIconView : public QListView
public:
PlIconView( PLModel *model, QWidget *parent = 0 );
-private:
- void startDrag ( Qt::DropActions supportedActions );
- void dragMoveEvent ( QDragMoveEvent * event );
+protected:
+ virtual void startDrag ( Qt::DropActions supportedActions );
+ virtual void dragMoveEvent ( QDragMoveEvent * event );
};
class PlListView : public QListView
@@ -79,20 +79,20 @@ class PlListView : public QListView
public:
PlListView( PLModel *model, QWidget *parent = 0 );
-private:
- void startDrag ( Qt::DropActions supportedActions );
- void dragMoveEvent ( QDragMoveEvent * event );
- void keyPressEvent( QKeyEvent *event );
+protected:
+ virtual void startDrag ( Qt::DropActions supportedActions );
+ virtual void dragMoveEvent ( QDragMoveEvent * event );
+ virtual void keyPressEvent( QKeyEvent *event );
};
class PlTreeView : public QTreeView
{
Q_OBJECT
-private:
- void startDrag ( Qt::DropActions supportedActions );
- void dragMoveEvent ( QDragMoveEvent * event );
- void keyPressEvent( QKeyEvent *event );
+protected:
+ virtual void startDrag ( Qt::DropActions supportedActions );
+ virtual void dragMoveEvent ( QDragMoveEvent * event );
+ virtual void keyPressEvent( QKeyEvent *event );
};
#endif
More information about the vlc-commits
mailing list