mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8822 Summary Axis: Add tick mark count to y-axis
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "RiuMultiPlotBook.h"
|
||||
|
||||
#include "RiaGuiApplication.h"
|
||||
#include "RiaPlotDefines.h"
|
||||
#include "RiaPlotWindowRedrawScheduler.h"
|
||||
#include "RiaPreferences.h"
|
||||
|
||||
@@ -342,8 +343,7 @@ void RiuMultiPlotBook::scheduleReplotOfAllPlots()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMultiPlotBook::renderTo( QPaintDevice* paintDevice )
|
||||
{
|
||||
int resolution = paintDevice->logicalDpiX();
|
||||
double scaling = resolution / static_cast<double>( RiaGuiApplication::applicationResolution() );
|
||||
auto scaling = RiaDefines::scalingFactor( paintDevice );
|
||||
|
||||
QPainter painter( paintDevice );
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "WellLogCommands/RicWellLogPlotTrackFeatureImpl.h"
|
||||
|
||||
#include "RiaGuiApplication.h"
|
||||
#include "RiaPlotDefines.h"
|
||||
|
||||
#include "RimContextCommandBuilder.h"
|
||||
#include "RimMultiPlot.h"
|
||||
@@ -359,8 +360,7 @@ void RiuMultiPlotPage::updateSubTitles()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMultiPlotPage::renderTo( QPaintDevice* paintDevice )
|
||||
{
|
||||
int resolution = paintDevice->logicalDpiX();
|
||||
double scaling = resolution / static_cast<double>( RiaGuiApplication::applicationResolution() );
|
||||
auto scaling = RiaDefines::scalingFactor( paintDevice );
|
||||
|
||||
QPainter painter( paintDevice );
|
||||
renderTo( &painter, scaling );
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "RiaGuiApplication.h"
|
||||
#include "RiaPlotDefines.h"
|
||||
#include "RiaPlotWindowRedrawScheduler.h"
|
||||
|
||||
#include "RimPlot.h"
|
||||
|
||||
#include "RiuDraggableOverlayFrame.h"
|
||||
@@ -757,8 +758,8 @@ void RiuQwtPlotWidget::renderTo( QPainter* painter, const QRect& targetRect, dou
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuQwtPlotWidget::renderTo( QPaintDevice* paintDevice, const QRect& targetRect )
|
||||
{
|
||||
int resolution = paintDevice->logicalDpiX();
|
||||
double scaling = resolution / static_cast<double>( RiaGuiApplication::applicationResolution() );
|
||||
auto scaling = RiaDefines::scalingFactor( paintDevice );
|
||||
|
||||
QPainter painter( paintDevice );
|
||||
renderTo( &painter, targetRect, scaling );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user