Reduce space around legend texts for better visuals.

This commit is contained in:
jonjenssen 2023-03-11 00:00:40 +01:00 committed by jonjenssen
parent ad94dd9d97
commit 4389b15e37

View File

@ -865,9 +865,12 @@ void RiuMultiPlotPage::updateLegendFont( RiuQwtPlotLegend* legend )
for ( QwtLegendLabel* label : labels )
{
label->setFont( legendFont );
label->setMargin( 0 );
label->setSpacing( 1 );
}
legend->setFont( legendFont );
legend->setContentsMargins( 0, 0, 0, 0 );
}
//--------------------------------------------------------------------------------------------------