mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
clang-format: Set column width to 140
* Set column width to 140 * Use c++20 * Remove redundant virtual
This commit is contained in:
@@ -56,9 +56,7 @@ using namespace QtCharts;
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuQtChartsPlotWidget::RiuQtChartsPlotWidget( RimPlot* plotDefinition,
|
||||
QWidget* parent,
|
||||
RiuPlotCurveInfoTextProvider* plotCurveNameProvider )
|
||||
RiuQtChartsPlotWidget::RiuQtChartsPlotWidget( RimPlot* plotDefinition, QWidget* parent, RiuPlotCurveInfoTextProvider* plotCurveNameProvider )
|
||||
: RiuPlotWidget( plotDefinition, parent )
|
||||
, m_plotCurveNameProvider( plotCurveNameProvider )
|
||||
, m_dateScaleWrapper( new RiuQwtDateScaleWrapper() )
|
||||
@@ -162,11 +160,7 @@ int RiuQtChartsPlotWidget::axisValueFontSize( RiuPlotAxis axis ) const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuQtChartsPlotWidget::setAxisFontsAndAlignment( RiuPlotAxis axis,
|
||||
int titleFontSize,
|
||||
int valueFontSize,
|
||||
bool titleBold,
|
||||
int alignment )
|
||||
void RiuQtChartsPlotWidget::setAxisFontsAndAlignment( RiuPlotAxis axis, int titleFontSize, int valueFontSize, bool titleBold, int alignment )
|
||||
{
|
||||
int titleFontPixelSize = caf::FontTools::pointSizeToPixelSize( titleFontSize );
|
||||
int valueFontPixelSize = caf::FontTools::pointSizeToPixelSize( valueFontSize );
|
||||
@@ -444,9 +438,7 @@ void RiuQtChartsPlotWidget::setMajorAndMinorTickIntervalsAndRange( RiuPlotAxis a
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuQtChartsPlotWidget::setAutoTickIntervalCounts( RiuPlotAxis axis,
|
||||
int maxMajorTickIntervalCount,
|
||||
int maxMinorTickIntervalCount )
|
||||
void RiuQtChartsPlotWidget::setAutoTickIntervalCounts( RiuPlotAxis axis, int maxMajorTickIntervalCount, int maxMinorTickIntervalCount )
|
||||
{
|
||||
setAxisMaxMajor( axis, maxMajorTickIntervalCount );
|
||||
setAxisMaxMinor( axis, maxMinorTickIntervalCount );
|
||||
@@ -1007,11 +999,7 @@ void RiuQtChartsPlotWidget::attachSeriesToAxis( RiuPlotAxis axis, QAbstractSerie
|
||||
connect( newAxis, SIGNAL( rangeChanged( double, double ) ), this, SLOT( axisRangeChanged() ), Qt::UniqueConnection );
|
||||
if ( plotCurve )
|
||||
{
|
||||
connect( newAxis,
|
||||
SIGNAL( rangeChanged( double, double ) ),
|
||||
plotCurve,
|
||||
SLOT( axisRangeChanged() ),
|
||||
Qt::UniqueConnection );
|
||||
connect( newAxis, SIGNAL( rangeChanged( double, double ) ), plotCurve, SLOT( axisRangeChanged() ), Qt::UniqueConnection );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1167,8 +1155,7 @@ QAbstractAxis* RiuQtChartsPlotWidget::plotAxis( RiuPlotAxis axis ) const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
Qt::Orientation RiuQtChartsPlotWidget::orientation( RiaDefines::PlotAxis axis ) const
|
||||
{
|
||||
if ( axis == RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM || axis == RiaDefines::PlotAxis::PLOT_AXIS_TOP )
|
||||
return Qt::Orientation::Horizontal;
|
||||
if ( axis == RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM || axis == RiaDefines::PlotAxis::PLOT_AXIS_TOP ) return Qt::Orientation::Horizontal;
|
||||
|
||||
return Qt::Orientation::Vertical;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user