cabana: remove the margins of the legend item (#27152)

old-commit-hash: afa85e0256a482f046fcb89495a06ef67b5d673f
This commit is contained in:
Dean Lee
2023-01-31 02:57:16 +08:00
committed by GitHub
parent 86266c0cea
commit 8f812acb0d
+1
View File
@@ -305,6 +305,7 @@ ChartView::ChartView(QWidget *parent) : QChartView(nullptr, parent) {
axis_y = new QValueAxis(this);
chart->addAxis(axis_x, Qt::AlignBottom);
chart->addAxis(axis_y, Qt::AlignLeft);
chart->legend()->layout()->setContentsMargins(0, 0, 40, 0);
chart->legend()->setShowToolTips(true);
chart->layout()->setContentsMargins(0, 0, 0, 0);
chart->setMargins({20, 11, 11, 11});