[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: koffice/karbon/widgets
From: Thomas Zander <zander () kde ! org>
Date: 2006-10-13 12:45:23
Message-ID: 200610131445.27655.zander () kde ! org
[Download RAW message or body]
Thats not the right way to do it.
A tool should adjust the clipRect itself to include the selection handles in
its call to updateCavas()
See the InteractionTool::repaintDecorations() for an inspiration.
On Thursday 12 October 2006 22:31, Jan Hambrecht wrote:
> SVN commit 594929 by jaham:
>
> adjust painting rect so that selection handles are safely included
>
>
>
> M +1 -1 vcanvas.cc
>
>
> --- trunk/koffice/karbon/widgets/vcanvas.cc #594928:594929
> @@ -132,7 +132,7 @@
>
> void KarbonCanvas::updateCanvas(const QRectF& rc) {
> QRect clipRect( viewToWidget(
> m_zoomHandler.documentToView(rc).toRect() ) ); - clipRect.adjust(-2, -2,
> 2, 2); // grow for to anti-aliasing
> + clipRect.adjust(-12, -12, 12, 12); // grow for anti-aliasing and to
> include selection handles update(clipRect);
> }
--
Thomas Zander
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic