diff options
Diffstat (limited to 'spline/spline-widget.cpp')
-rw-r--r-- | spline/spline-widget.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp index 0ae3766d..e182e45a 100644 --- a/spline/spline-widget.cpp +++ b/spline/spline-widget.cpp @@ -258,15 +258,6 @@ void spline_widget::drawFunction() } } -double spline_widget::screen_dpi() const -{ -#ifdef _WIN32 - return std::max(devicePixelRatioF(), 1.); -#else - return std::max(std::max(logicalDpiX()/(double)physicalDpiX(), devicePixelRatioF()), 1.); -#endif -} - QSize spline_widget::minimumSizeHint() const { const double dpi = screen_dpi(); |