[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: koffice/libs/flake
From: Thomas Zander <zander () kde ! org>
Date: 2009-06-23 5:16:29
Message-ID: 200906230816.30180.zander () kde ! org
[Download RAW message or body]
On Tuesday 23. June 2009 00.59.09 Cyrille Berger wrote:
> SVN commit 985479 by berger:
>
> use an escape length that give better results when shapes are close from
> one other
>
>
> M +2 -2 KoConnectionShape.cpp
>
>
> --- trunk/koffice/libs/flake/KoConnectionShape.cpp #985478:985479
> @@ -197,8 +197,8 @@
> {
> Q_UNUSED(size);
>
> - const qreal MinimumEscapeLength = 20.0;
> -
> + QPointF dst = 0.3 * ( m_handles[0] - m_handles[1]);
> + const qreal MinimumEscapeLength = qMax(0.01, qMin(qAbs(dst.x()),
> qMin(qAbs(dst.y()), 20.0)));
> clear();
> switch (d->connectionType) {
> case Standard: {
You might want to use qBouds macro, if I understand that fits better and is
more readable.
--
Thomas Zander
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic