[vlc-commits] commit: Qt4: make pictureflow work with tree-like playlist too ( Ilkka Ollakka )
git at videolan.org
git at videolan.org
Sun Oct 31 15:54:17 CET 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Oct 31 16:53:43 2010 +0200| [e40d6757b31854536486b283c31b9c8ae90600ad] | committer: Ilkka Ollakka
Qt4: make pictureflow work with tree-like playlist too
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e40d6757b31854536486b283c31b9c8ae90600ad
---
modules/gui/qt4/util/pictureflow.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/util/pictureflow.cpp b/modules/gui/qt4/util/pictureflow.cpp
index 82f08db..b92574b 100644
--- a/modules/gui/qt4/util/pictureflow.cpp
+++ b/modules/gui/qt4/util/pictureflow.cpp
@@ -593,12 +593,12 @@ QImage* PictureFlowSoftwareRenderer::surface(int slideIndex)
return 0;
if (slideIndex < 0)
return 0;
- if (slideIndex >= (int)state->model->rowCount())
+ if (slideIndex >= state->model->rowCount( state->model->currentIndex().parent() ) )
return 0;
int key = slideIndex;
- QImage* img = new QImage(PLModel::getArtPixmap( state->model->index( slideIndex, 0, QModelIndex() ),
+ QImage* img = new QImage(PLModel::getArtPixmap( state->model->index( slideIndex, 0, state->model->currentIndex().parent() ),
QSize( state->slideWidth, state->slideHeight ) ).toImage());
bool exist = imageHash.contains(slideIndex);
@@ -803,7 +803,7 @@ PictureFlow::~PictureFlow()
int PictureFlow::slideCount() const
{
- return d->state->model->rowCount();
+ return d->state->model->rowCount( d->state->model->currentIndex().parent() );
}
QColor PictureFlow::backgroundColor() const
More information about the vlc-commits
mailing list