1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@946 ebee16cc-31ac-478f-84a7-5cbb03baadba

This commit is contained in:
pip 2010-06-30 09:26:38 +00:00 committed by pip
parent 0a1d6ac7ed
commit e57b93f2f6

View File

@ -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)