diff --git a/src/tools/UBGraphicsCompass.cpp b/src/tools/UBGraphicsCompass.cpp index cfedb870..0bdc58a1 100644 --- a/src/tools/UBGraphicsCompass.cpp +++ b/src/tools/UBGraphicsCompass.cpp @@ -37,7 +37,7 @@ #include "core/memcheck.h" -const QRect UBGraphicsCompass::sDefaultRect = QRect(0, -20, 300, 48); +const QRect UBGraphicsCompass::sDefaultRect = QRect(0, -20, 300, 36); const QColor UBGraphicsCompass::sLightBackgroundMiddleFillColor = QColor(0x72, 0x72, 0x72, sFillTransparency); const QColor UBGraphicsCompass::sLightBackgroundEdgeFillColor = QColor(0xc3, 0xc3, 0xc3, sFillTransparency); const QColor UBGraphicsCompass::sLightBackgroundDrawColor = QColor(0x33, 0x33, 0x33, sDrawTransparency); @@ -46,7 +46,7 @@ const QColor UBGraphicsCompass::sDarkBackgroundEdgeFillColor = QColor(0xdd, 0xdd const QColor UBGraphicsCompass::sDarkBackgroundDrawColor = QColor(0xff, 0xff, 0xff, sDrawTransparency); const int UBGraphicsCompass::sMinRadius = UBGraphicsCompass::sNeedleLength + UBGraphicsCompass::sNeedleBaseLength - + 32 + UBGraphicsCompass::sDefaultRect.height() + 32 + UBGraphicsCompass::sPencilBaseLength + + 24 + UBGraphicsCompass::sDefaultRect.height() + 24 + UBGraphicsCompass::sPencilBaseLength + UBGraphicsCompass::sPencilLength; UBGraphicsCompass::UBGraphicsCompass() diff --git a/src/tools/UBGraphicsCompass.h b/src/tools/UBGraphicsCompass.h index 425a789e..0962bbac 100644 --- a/src/tools/UBGraphicsCompass.h +++ b/src/tools/UBGraphicsCompass.h @@ -124,25 +124,25 @@ class UBGraphicsCompass: public QObject, public QGraphicsRectItem, public UBItem int mPixelsPerMillimeter; // Constants - static const int sNeedleLength = 24; - static const int sNeedleWidth = 4; + static const int sNeedleLength = 18; + static const int sNeedleWidth = 3; - static const int sNeedleBaseLength = 16; - static const int sNeedleBaseWidth = 16; + static const int sNeedleBaseLength = 12; + static const int sNeedleBaseWidth = 12; - static const int sNeedleArmLeftWidth = 24; - static const int sNeedleArmRigthWidth = 32; + static const int sNeedleArmLeftWidth = 18; + static const int sNeedleArmRigthWidth = 24; - static const int sPencilLength = 16; - static const int sPencilWidth = 4; + static const int sPencilLength = 12; + static const int sPencilWidth = 3; - static const int sPencilBaseLength = 24; - static const int sPencilBaseWidth = 16; + static const int sPencilBaseLength = 18; + static const int sPencilBaseWidth = 12; - static const int sPencilArmLeftWidth = 32; - static const int sPencilArmRightWidth = 24; + static const int sPencilArmLeftWidth = 24; + static const int sPencilArmRightWidth = 18; - static const int sCornerRadius = 4; + static const int sCornerRadius = 3; static const QRect sDefaultRect; static const int sMinRadius;