[vlc-commits] Qt: PLModel: don't reset model on zoom
Francois Cartegnie
git at videolan.org
Sat Aug 4 20:35:28 CEST 2012
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Aug 4 20:34:49 2012 +0200| [7a05ff181cf9e03c5c58bd0fd2a4de63140a9e8d] | committer: Francois Cartegnie
Qt: PLModel: don't reset model on zoom
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7a05ff181cf9e03c5c58bd0fd2a4de63140a9e8d
---
modules/gui/qt4/components/playlist/standardpanel.cpp | 1 -
modules/gui/qt4/components/playlist/views.hpp | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index e831597..9109431 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -558,7 +558,6 @@ void StandardPLPanel::updateZoom( int i )
A_ZOOM( iconView );
A_ZOOM( listView );
#undef A_ZOOM
- currentView->reset();
}
void StandardPLPanel::changeModel( bool b_ml )
diff --git a/modules/gui/qt4/components/playlist/views.hpp b/modules/gui/qt4/components/playlist/views.hpp
index 3466e95..c74cabc 100644
--- a/modules/gui/qt4/components/playlist/views.hpp
+++ b/modules/gui/qt4/components/playlist/views.hpp
@@ -41,7 +41,7 @@ class AbstractPlViewItemDelegate : public QStyledItemDelegate
public:
AbstractPlViewItemDelegate( QWidget * parent = 0 ) : QStyledItemDelegate(parent) {}
void paintBackground( QPainter *, const QStyleOptionViewItem &, const QModelIndex & ) const;
- void setZoom( int z ) { i_zoom = z; };
+ void setZoom( int z ) { i_zoom = z; emit sizeHintChanged( QModelIndex() ); };
protected:
int i_zoom;
More information about the vlc-commits
mailing list