From e57b93f2f680849a75ae94172c01dd17a532254a Mon Sep 17 00:00:00 2001 From: pip Date: Wed, 30 Jun 2010 09:26:38 +0000 Subject: [PATCH] git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@946 ebee16cc-31ac-478f-84a7-5cbb03baadba --- .../src/mapwidget/waypointitem.cpp | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/ground/src/libs/opmapcontrol/src/mapwidget/waypointitem.cpp b/ground/src/libs/opmapcontrol/src/mapwidget/waypointitem.cpp index 175176f2c..547049b9e 100644 --- a/ground/src/libs/opmapcontrol/src/mapwidget/waypointitem.cpp +++ b/ground/src/libs/opmapcontrol/src/mapwidget/waypointitem.cpp @@ -75,17 +75,21 @@ namespace mapcontrol { if(event->button()==Qt::LeftButton) { - text=new QGraphicsSimpleTextItem(this); + text=new QGraphicsSimpleTextItem(this); textBG=new QGraphicsRectItem(this); - textBG->setBrush(Qt::white); - textBG->setOpacity(0.5); - text->setPen(QPen(Qt::red)); - text->setPos(10,-picture.height()); - textBG->setPos(10,-picture.height()); - text->setZValue(3); - RefreshToolTip(); - isDragging=true; - } + +// textBG->setBrush(Qt::white); +// textBG->setOpacity(0.5); + + textBG->setBrush(QColor(255, 255, 255, 128)); + + text->setPen(QPen(Qt::red)); + text->setPos(10,-picture.height()); + textBG->setPos(10,-picture.height()); + text->setZValue(3); + RefreshToolTip(); + isDragging=true; + } QGraphicsItem::mousePressEvent(event); } void WayPointItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)