mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
#8822 Summary Axis: Add tick mark count to y-axis
This commit is contained in:
1 parent
b6f7dd931e
commit
853b4a26d5
20 files changed
+157
-38
No files matched your search
@@ -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