Dear Chris,

I see that QTransform() is used in Panner:drawItems to get an identity matrix.

So if we implemented scaling, we'd need to somehow obtain horizontal and 
vertical transformation information to feed to QTransform().

Here is a snippet of the current code starting at line 185:
    painter->save();
    painter->setTransform(QTransform());
    painter->drawPixmap(0, 0, m_cache);
    painter->restore();

QTransform::fromScale ( qreal sx, qreal sy ) for qt 4.5

or 

QTransform::scale ( qreal sx, qreal sy ) for eariler

Creates a matrix which corresponds to a scaling of sx horizontally and sy 
vertically. This is the same as QTransform().scale(sx, sy) but slightly faster.

So each slot would need to set panner scale members before calling on the 
update to the panner.

Is this correct?

Sincerely,
Julie S.



      

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to