mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
cabana: set correct geometry for legend (#27260)
old-commit-hash: 80bf755b075b2b56373b4ca49c2c95d1837e7648
This commit is contained in:
@@ -310,7 +310,7 @@ ChartView::ChartView(QWidget *parent) : QChartView(nullptr, parent) {
|
||||
axis_y->setLabelFormat("%.1f");
|
||||
chart->addAxis(axis_x, Qt::AlignBottom);
|
||||
chart->addAxis(axis_y, Qt::AlignLeft);
|
||||
chart->legend()->layout()->setContentsMargins(0, 0, 40, 0);
|
||||
chart->legend()->layout()->setContentsMargins(16, 0, 40, 0);
|
||||
chart->legend()->setShowToolTips(true);
|
||||
chart->setMargins({0, 0, 0, 0});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user