From 25616e3aa744e632520029186d7a7185cb926efd Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Fri, 7 Feb 2020 15:19:16 +0100 Subject: [PATCH] #5404 Make horizontal legend use more than 4 columns if possible --- ApplicationCode/UserInterface/RiuMultiPlotPage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/UserInterface/RiuMultiPlotPage.cpp b/ApplicationCode/UserInterface/RiuMultiPlotPage.cpp index d595e3811e..baa22ac37d 100644 --- a/ApplicationCode/UserInterface/RiuMultiPlotPage.cpp +++ b/ApplicationCode/UserInterface/RiuMultiPlotPage.cpp @@ -175,7 +175,7 @@ void RiuMultiPlotPage::insertPlot( RiuQwtPlotWidget* plotWidget, size_t index ) int legendColumns = 1; if ( m_plotDefinition->legendsHorizontal() ) { - legendColumns = 4; // unlimited + legendColumns = 0; // unlimited } legend->setMaxColumns( legendColumns ); legend->horizontalScrollBar()->setVisible( false ); @@ -618,7 +618,7 @@ void RiuMultiPlotPage::reinsertPlotWidgets() int legendColumns = 1; if ( m_plotDefinition->legendsHorizontal() ) { - legendColumns = 4; // unlimited + legendColumns = 0; // unlimited } legends[visibleIndex]->setMaxColumns( legendColumns ); QFont legendFont = legends[visibleIndex]->font();