mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@946 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
0a1d6ac7ed
commit
e57b93f2f6
@ -75,17 +75,21 @@ namespace mapcontrol
|
|||||||
{
|
{
|
||||||
if(event->button()==Qt::LeftButton)
|
if(event->button()==Qt::LeftButton)
|
||||||
{
|
{
|
||||||
text=new QGraphicsSimpleTextItem(this);
|
text=new QGraphicsSimpleTextItem(this);
|
||||||
textBG=new QGraphicsRectItem(this);
|
textBG=new QGraphicsRectItem(this);
|
||||||
textBG->setBrush(Qt::white);
|
|
||||||
textBG->setOpacity(0.5);
|
// textBG->setBrush(Qt::white);
|
||||||
text->setPen(QPen(Qt::red));
|
// textBG->setOpacity(0.5);
|
||||||
text->setPos(10,-picture.height());
|
|
||||||
textBG->setPos(10,-picture.height());
|
textBG->setBrush(QColor(255, 255, 255, 128));
|
||||||
text->setZValue(3);
|
|
||||||
RefreshToolTip();
|
text->setPen(QPen(Qt::red));
|
||||||
isDragging=true;
|
text->setPos(10,-picture.height());
|
||||||
}
|
textBG->setPos(10,-picture.height());
|
||||||
|
text->setZValue(3);
|
||||||
|
RefreshToolTip();
|
||||||
|
isDragging=true;
|
||||||
|
}
|
||||||
QGraphicsItem::mousePressEvent(event);
|
QGraphicsItem::mousePressEvent(event);
|
||||||
}
|
}
|
||||||
void WayPointItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
void WayPointItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user