> On Monday, September 12, 2011, Tom Breton (Tehom) wrote: > >> Just to throw my $0.02 in, are "width" and "height" always larger than >> the >> originals? And do we know what QPixmap::copy does in that case? > > The best answer I can give you is to suggest that you go look at > CompositionView::resizeEvent() and try to figure it out.
OK, I went and looked at CompositionView.cpp. Bad news and possibly good
news.
First the bad news: I changed the respective lines in CompositionView.cpp
- not on the no-qt3 branch, just on the main branch that I already had
checked out - but I couldn't reproduce the problem. So that might not be
the only thing going wrong.
Good news: I just might have the solution, at least to replacing resize.
I've attached a patch. I know I have commit now, but I have the change
against the trunk branch, not the no-qt3 branch, and also it seemed like
you should be fully in control of that since you're knee-deep in it and I
am not. So it seemed wrong for me to commit it.
What the patch does: Just uses "scaled" instead of "copy". "Scaled" is
another copy ctor that resizes. I stumbled on it while reading up on Qt.
I tried it out, and I can resize the composition window without a problem,
which makes me think it is the right replacement for resize. I don't know
if it solves the whole problem.
Tom Breton (Tehom)
patch-tehom-20111209
Description: Binary data
------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________ Rosegarden-devel mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
