From: Michal MalĂ˝ Date: Thu, 2 Apr 2015 20:19:44 +0000 (+0200) Subject: Use helper functions to get display DPI in SignalDrawer X-Git-Tag: 0.5b~2 X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=8cfdc255057dde29044aaa0edef8487f22222593;p=anyanka.git Use helper functions to get display DPI in SignalDrawer --- 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));