From: Sami Rämö Date: Fri, 27 Aug 2010 13:22:23 +0000 (+0300) Subject: Fine tuned the direction indicator arrow look X-Git-Tag: v2.0b-1~36^2~1 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=e3196a86eee87ed2c97646c3585d5a79d7bd001e;p=situare Fine tuned the direction indicator arrow look - Reviewed by Jussi Laitinen --- diff --git a/src/ui/indicatorbutton.cpp b/src/ui/indicatorbutton.cpp index 81bc7b2..02b58d9 100644 --- a/src/ui/indicatorbutton.cpp +++ b/src/ui/indicatorbutton.cpp @@ -136,9 +136,9 @@ void IndicatorButton::paintEvent(QPaintEvent *event) // draw the direction indicator triangle only when autocentering is disabled and MapEngine // doesn't deny drawing (because GPS location item is visible) if (!isChecked() && m_drawTriangle) { - const int TRIANGLE_WIDTH = 10; - const int TRIANGLE_HEIGHT = 10; - const int TRIANGLE_DISTANCE_FROM_CENTER = 15; + const int TRIANGLE_WIDTH = 14; + const int TRIANGLE_HEIGHT = 15; + const int TRIANGLE_DISTANCE_FROM_CENTER = 13; const int POINTS = 3; const QPointF points[POINTS] = { @@ -159,8 +159,9 @@ void IndicatorButton::paintEvent(QPaintEvent *event) painter.setTransform(rotationTransform * translateTransform); // setting the look of the triangle - painter.setBrush(Qt::red); - painter.setPen(Qt::red); + const QColor TRIANGLE_BACKGROUND_COLOR = QColor("#68d0f8"); + painter.setBrush(QBrush(TRIANGLE_BACKGROUND_COLOR)); + painter.setPen(Qt::black); painter.drawPolygon(points, POINTS); }