Better headers and sorting

This commit is contained in:
Gaute Lindkvist
2020-05-05 07:55:21 +02:00
parent 27600fa57a
commit 70685b73b4
6 changed files with 33 additions and 14 deletions

View File

@@ -19,9 +19,8 @@
#include "RiaQDateTimeTools.h"
#include <qwt_date.h>
class QwtPlot;
class QwtPlotShapeItem;
#include <qwt_plot.h>
#include <qwt_plot_shapeitem.h>
class RiuQwtPlotTools
{

View File

@@ -239,6 +239,18 @@ bool RiuQwtPlotWidget::plotTitleEnabled() const
return m_plotTitleEnabled;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuQwtPlotWidget::setPlotTitleFontSize( int titleFontSize )
{
auto title = this->title();
QFont font = title.font();
font.setPixelSize( RiaFontCache::pointSizeToPixelSize( titleFontSize ) );
title.setFont( font );
setTitle( title );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -84,6 +84,7 @@ public:
const QString& plotTitle() const;
void setPlotTitleEnabled( bool enabled );
bool plotTitleEnabled() const;
void setPlotTitleFontSize( int titleFontSize );
void setLegendFontSize( int fontSize );
void setLegendVisible( bool visible );