From c709f1163fa734f37f6046064d9ad01c52ab3b6e Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Sat, 28 Aug 2010 01:01:59 +0000 Subject: [PATCH] use QPoint instead of QPointF for rendering dots. svn path=/trunk/KDE/kdebase/workspace/; revision=1168961 --- clients/oxygen/oxygenclient.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 99c0f98208..bab5057d0e 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -1119,12 +1119,12 @@ namespace Oxygen { // Draw right side 3-dots resize handles - const qreal cenY = h / 2 + y ; - const qreal posX = w + x - 3; + const int cenY = (h / 2 + y) ; + const int posX = (w + x - 3); - helper().renderDot( painter, QPointF(posX, cenY - 3), color); - helper().renderDot( painter, QPointF(posX, cenY), color); - helper().renderDot( painter, QPointF(posX, cenY + 3), color); + helper().renderDot( painter, QPoint(posX, cenY - 3), color); + helper().renderDot( painter, QPoint(posX, cenY), color); + helper().renderDot( painter, QPoint(posX, cenY + 3), color); } @@ -1134,9 +1134,9 @@ namespace Oxygen painter->save(); painter->translate(x + w-9, y + h-9); - helper().renderDot( painter, QPointF(2, 6), color); - helper().renderDot( painter, QPointF(5, 5), color); - helper().renderDot( painter, QPointF(6, 2), color); + helper().renderDot( painter, QPoint(2, 6), color); + helper().renderDot( painter, QPoint(5, 5), color); + helper().renderDot( painter, QPoint(6, 2), color); painter->restore(); }