Commit 7a05ff18 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: PLModel: don't reset model on zoom

parent b5a7969a
......@@ -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 )
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment