From fac060cc5e3aa2f5b677524ab62101ff930f40b9 Mon Sep 17 00:00:00 2001 From: Flavio Date: Wed, 9 Jan 2013 21:45:20 +0100 Subject: [PATCH] Revert columnCount to 4 (don't know why, 1 breaks drag and drop) --- src/playlistmodel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/playlistmodel.h b/src/playlistmodel.h index 1a1be5c..ccaee5a 100644 --- a/src/playlistmodel.h +++ b/src/playlistmodel.h @@ -31,7 +31,7 @@ public: PlaylistModel(QWidget *parent = 0); int rowCount(const QModelIndex &parent = QModelIndex()) const; - int columnCount( const QModelIndex& parent = QModelIndex() ) const { Q_UNUSED( parent ); return 1; } + int columnCount( const QModelIndex& parent = QModelIndex() ) const { Q_UNUSED( parent ); return 4; } QVariant data(const QModelIndex &index, int role) const; bool removeRows(int position, int rows, const QModelIndex &parent); @@ -55,6 +55,7 @@ public: Video* videoAt( int row ) const; Video* activeVideo() const; + bool hasVideo(Video *video) const { return videos.contains(video); } VideoSource* getVideoSource() { return videoSource; } void setVideoSource(VideoSource *videoSource); -- 2.39.5