mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
Cabana: fix marker z-index (#26254)
old-commit-hash: d67965901895432375584d95103ee1afc14f5554
This commit is contained in:
@@ -247,10 +247,13 @@ ChartView::ChartView(const QString &id, const Signal *sig, QWidget *parent)
|
||||
chart->layout()->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
track_line = new QGraphicsLineItem(chart);
|
||||
track_line->setZValue(chart->zValue() + 10);
|
||||
track_line->setPen(QPen(Qt::gray, 1, Qt::DashLine));
|
||||
value_text = new QGraphicsSimpleTextItem(chart);
|
||||
value_text->setZValue(chart->zValue() + 10);
|
||||
value_text->setBrush(Qt::gray);
|
||||
line_marker = new QGraphicsLineItem(chart);
|
||||
line_marker->setZValue(chart->zValue() + 10);
|
||||
line_marker->setPen(QPen(Qt::black, 2));
|
||||
|
||||
setChart(chart);
|
||||
|
||||
Reference in New Issue
Block a user