From: Flavio Date: Wed, 9 Jan 2013 20:45:20 +0000 (+0100) Subject: Revert columnCount to 4 (don't know why, 1 breaks drag and drop) X-Git-Tag: 2.0~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fac060cc5e3aa2f5b677524ab62101ff930f40b9;p=minitube Revert columnCount to 4 (don't know why, 1 breaks drag and drop) --- 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);