From eeac81a26e5a4a8a70b72281f9eb1da58d796cc8 Mon Sep 17 00:00:00 2001 From: wandererfan Date: Mon, 4 Nov 2019 22:34:20 -0500 Subject: [PATCH] [TD]fix balloon colors --- src/Mod/TechDraw/Gui/QGIViewBalloon.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/Gui/QGIViewBalloon.cpp b/src/Mod/TechDraw/Gui/QGIViewBalloon.cpp index b40c056814..b5940ec1f6 100644 --- a/src/Mod/TechDraw/Gui/QGIViewBalloon.cpp +++ b/src/Mod/TechDraw/Gui/QGIViewBalloon.cpp @@ -150,6 +150,8 @@ void QGIBalloonLabel::hoverEnterEvent(QGraphicsSceneHoverEvent *event) hasHover = true; if (!isSelected()) { setPrettyPre(); + } else { + setPrettySel(); } QGraphicsItem::hoverEnterEvent(event); } @@ -164,6 +166,8 @@ void QGIBalloonLabel::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) hasHover = false; if (!isSelected()) { setPrettyNormal(); + } else { + setPrettySel(); } QGraphicsItem::hoverLeaveEvent(event); } @@ -253,12 +257,19 @@ QGIViewBalloon::QGIViewBalloon() : balloonLines = new QGIDimLines(); addToGroup(balloonLines); + balloonLines->setNormalColor(getNormalColor()); + balloonLines->setPrettyNormal(); balloonShape = new QGIDimLines(); addToGroup(balloonShape); - + balloonShape->setNormalColor(getNormalColor()); + balloonShape->setPrettyNormal(); + arrow = new QGIArrow(); addToGroup(arrow); + arrow->setNormalColor(getNormalColor()); + arrow->setFillColor(getNormalColor()); + arrow->setPrettyNormal(); balloonLabel->setZValue(ZVALUE::LABEL); arrow->setZValue(ZVALUE::DIMENSION);