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

pull/27159/head
Dean Lee 2 years ago committed by GitHub
parent 078f06dbaf
commit afa85e0256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      tools/cabana/chartswidget.cc

@ -305,6 +305,7 @@ ChartView::ChartView(QWidget *parent) : QChartView(nullptr, parent) {
axis_y = new QValueAxis(this); axis_y = new QValueAxis(this);
chart->addAxis(axis_x, Qt::AlignBottom); chart->addAxis(axis_x, Qt::AlignBottom);
chart->addAxis(axis_y, Qt::AlignLeft); chart->addAxis(axis_y, Qt::AlignLeft);
chart->legend()->layout()->setContentsMargins(0, 0, 40, 0);
chart->legend()->setShowToolTips(true); chart->legend()->setShowToolTips(true);
chart->layout()->setContentsMargins(0, 0, 0, 0); chart->layout()->setContentsMargins(0, 0, 0, 0);
chart->setMargins({20, 11, 11, 11}); chart->setMargins({20, 11, 11, 11});

Loading…
Cancel
Save