[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/office/flake/lib
From: Thorsten Zachmann <t.zachmann () zagge ! de>
Date: 2006-04-23 4:40:49
Message-ID: 1145767249.470191.31801.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 532870 by zachmann:
o Fix distance of outside handles to inside handles to be allways at the
same distance.
M +3 -5 KoSelection.cpp
--- trunk/playground/office/flake/lib/KoSelection.cpp #532869:532870
@@ -59,7 +59,7 @@
painter.save();
painter.setRenderHint( QPainter::Antialiasing, false );
QRectF bb( boundingBox() );
- QPen pen( Qt::red );
+ QPen pen( Qt::blue ); //TODO make it configurable
painter.setPen( pen );
painter.drawRect( bb );
@@ -70,12 +70,10 @@
for ( int i = 0; i < HandleEnd; ++i )
{
- QPointF p( m_selectionBox[ i ] * m );
+ QPointF p( m_selectionBox[i] * m );
QRectF r( p.x() - 3, p.y() - 3, 5, 5 );
painter.drawRect( r );
- // FIXME the outer handles change their distance to the inner handles. The \
distance should stay the same
- QPointF pp( ( m_selectionBox[ i ] * m_invMatrix + m_handleDiff[ i ] ) * \
m_invMatrix.inverted() * m );
- //QPointF pp( ( m_selectionBox[ i ] + m_handleDiff[ i ] ) * m );
+ QPointF pp( ( m_selectionBox[i] + m_handleDiff[i] * m.inverted() ) * m );
QRectF rr( pp.x() - 3, pp.y() - 3, 5, 5 );
painter.drawRect( rr );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic