mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Better headers and sorting
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user