From f19507195c15d46dc4534094abf91f1a49fe8e16 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Thu, 30 Jun 2011 15:58:23 +0200 Subject: [PATCH] linux build fixed --- src/tools/UBGraphicsProtractor.cpp | 6 ++++-- src/tools/UBGraphicsProtractor.h | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/tools/UBGraphicsProtractor.cpp b/src/tools/UBGraphicsProtractor.cpp index 318b3e3f..cd8faae8 100644 --- a/src/tools/UBGraphicsProtractor.cpp +++ b/src/tools/UBGraphicsProtractor.cpp @@ -12,6 +12,7 @@ #include "domain/UBGraphicsScene.h" #include "board/UBBoardController.h" #include "board/UBDrawingController.h" +#include "UBAbstractDrawRuler.h" #include "core/memcheck.h" @@ -30,7 +31,8 @@ UBGraphicsProtractor::UBGraphicsProtractor() , mResizeSvgItem(0) , mMarkerSvgItem(0) { - + sFillTransparency = 127; + sDrawTransparency = 192; create(*this); setCacheMode(QGraphicsItem::DeviceCoordinateCache); @@ -49,7 +51,7 @@ UBGraphicsProtractor::UBGraphicsProtractor() mMarkerSvgItem = new QGraphicsSvgItem(":/images/angleMarker.svg", this); mMarkerSvgItem->setVisible(false); mMarkerSvgItem->setData(UBGraphicsItemData::ItemLayerType, QVariant(UBItemLayerType::Tool)); - + mRotateSvgItem = new QGraphicsSvgItem(":/images/rotateTool.svg", this); mRotateSvgItem->setVisible(false); mRotateSvgItem->setData(UBGraphicsItemData::ItemLayerType, QVariant(UBItemLayerType::Control)); diff --git a/src/tools/UBGraphicsProtractor.h b/src/tools/UBGraphicsProtractor.h index 76dc2546..90759a5b 100644 --- a/src/tools/UBGraphicsProtractor.h +++ b/src/tools/UBGraphicsProtractor.h @@ -92,6 +92,9 @@ class UBGraphicsProtractor : public UBAbstractDrawRuler, public QGraphicsEllipse virtual void rotateAroundCenter(qreal angle); virtual QPointF rotationCenter() const; + + int sFillTransparency; + int sDrawTransparency; }; #endif /* UBGRAPHICSPROTRACTOR_H_ */