[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kig] misc: Use QRectF also for arcs, as well as for circles
From: Maurizio Paolini <paolini () dmf ! unicatt ! it>
Date: 2016-03-23 18:55:58
Message-ID: E1ainwk-0006Fv-7h () scm ! kde ! org
[Download RAW message or body]
Git commit 2f22efe4cb70960cf2362680783477ed44b2492e by Maurizio Paolini.
Committed on 23/03/2016 at 18:54.
Pushed by paolini into branch 'master'.
Use QRectF also for arcs, as well as for circles
M +2 -2 misc/kigpainter.cpp
http://commits.kde.org/kig/2f22efe4cb70960cf2362680783477ed44b2492e
diff --git a/misc/kigpainter.cpp b/misc/kigpainter.cpp
index d0ef806..049a0ef 100644
--- a/misc/kigpainter.cpp
+++ b/misc/kigpainter.cpp
@@ -93,7 +93,7 @@ void KigPainter::drawCircle( const Coordinate& center, double radius )
void KigPainter::drawSegment( const Coordinate& from, const Coordinate& to )
{
- QPoint tF = toScreen(from), tT = toScreen(to);
+ QPointF tF = toScreenF(from), tT = toScreenF(to);
mP.drawLine( tF, tT );
if( mNeedOverlay ) segmentOverlay( from, to );
}
@@ -983,7 +983,7 @@ void KigPainter::drawArc( const Coordinate& center, double radius,
{
Rect krect( 0, 0, 2*radius, 2*radius );
krect.setCenter( center );
- QRect rect = toScreen( krect );
+ QRectF rect = toScreenF( krect );
mP.drawArc( rect, startangle, angle );
setWholeWinOverlay();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic