mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
[radar] Ensure the target's heading indicator is not a child of an item that ignores transformations
This commit is contained in:
@@ -191,7 +191,8 @@ namespace BlackGui
|
||||
double headingRad = sa.getHeading().value(CAngleUnit::rad());
|
||||
QPen pen(Qt::green, 1);
|
||||
pen.setCosmetic(true);
|
||||
QGraphicsLineItem *li = new QGraphicsLineItem(QLineF({ 0.0, 0.0 }, polarPoint(20.0, headingRad)), dot);
|
||||
QGraphicsLineItem *li = new QGraphicsLineItem(QLineF({ 0.0, 0.0 }, polarPoint(20.0, headingRad)), &m_radarTargets);
|
||||
li->setPos(position);
|
||||
li->setPen(pen);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user