From 8cfdc255057dde29044aaa0edef8487f22222593 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Thu, 2 Apr 2015 22:19:44 +0200 Subject: [PATCH] Use helper functions to get display DPI in SignalDrawer --- signaldrawer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/signaldrawer.cpp b/signaldrawer.cpp index 60bfefd..bc7c957 100644 --- a/signaldrawer.cpp +++ b/signaldrawer.cpp @@ -23,8 +23,6 @@ #include "helpers.h" #include "logger.h" #include "signaldrawer.h" -#include -#include #include const int SignalDrawer::AXIS_LABEL_BORDER_OFFSET(2); @@ -57,8 +55,8 @@ SignalDrawer::SignalDrawer(std::shared_ptr controller, const C m_dpiX = dpiX; m_dpiY = dpiY; } else { - m_dpiX = qApp->desktop()->logicalDpiX(); - m_dpiY = qApp->desktop()->logicalDpiY(); + m_dpiX = Helpers::dpiX(); + m_dpiY = Helpers::dpiY(); } m_axisLabelFont = new QFont("arial", scaleToDpiX(LABEL_FONT_SIZE)); -- 2.43.5