[vlc-devel] [vlc-commits] Qt: PLModel: move zoom value out of model

Ilkka Ollakka ileoo at videolan.org
Wed Aug 1 19:33:39 CEST 2012


On Thu, Jul 19, 2012 at 06:02:00PM +0200, Francois Cartegnie wrote:
> vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jul 19 17:49:05 2012 +0200| [58dc2946843e33058d8f8be98a9419c435a2b68f] | committer: Francois Cartegnie

Hi,

> Qt: PLModel: move zoom value out of model


> +void StandardPLPanel::updateZoom( int i )
> +{
> +    if ( i < 4 - QApplication::font().pointSize() ) return;
> +    i_zoom = i;
> +#define A_ZOOM( view ) \
> +    if ( view ) \
> +    qobject_cast<AbstractPlViewItemDelegate*>( view->itemDelegate() )->setZoom( i_zoom )
> +    /* Can't iterate as picflow & tree aren't using custom delegate */
> +    A_ZOOM( iconView );
> +    A_ZOOM( listView );
> +#undef A_ZOOM
> +    currentView->reset();

Is reset() really needed in here instead of earlier layoutChanged emit?
For tree playlist it throws view to root and loses the location where
user was.


-- 
Ilkka Ollakka
Some men are alive simply because it is against the law to kill them.
		-- Ed Howe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120801/85a452b6/attachment.sig>


More information about the vlc-devel mailing list