summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qhighdpiscaling.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-04-14 12:56:48 +0200
committerPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-04-14 12:58:24 +0200
commit91fb8061875db830d26f95acef048e36fb44cd6a (patch)
tree3718dd47863a56390b0918b88c6a8ef74c7a84dd /src/gui/kernel/qhighdpiscaling.cpp
parent7c77febbde4a7e2ebe73579f06baf018cbd192c3 (diff)
Move qHighDpi functions into the QHighDpi namespace
...and use fromDevicePixels instead of toDeviceIndependentPixels
Diffstat (limited to 'src/gui/kernel/qhighdpiscaling.cpp')
-rw-r--r--src/gui/kernel/qhighdpiscaling.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/kernel/qhighdpiscaling.cpp b/src/gui/kernel/qhighdpiscaling.cpp
index f4490dccae..eeeb995d43 100644
--- a/src/gui/kernel/qhighdpiscaling.cpp
+++ b/src/gui/kernel/qhighdpiscaling.cpp
@@ -112,14 +112,14 @@ qreal QHighDpiScaling::factor(const QWindow *window)
return m_factor * (windowFactor.isValid() ? windowFactor.toReal() : 1);
}
-Q_GUI_EXPORT QSize qHighDpiToDevicePixelsConstrained(const QSize &size, const QWindow *window)
+Q_GUI_EXPORT QSize QHighDpi::toDevicePixelsConstrained(const QSize &size, const QWindow *window)
{
const int width = size.width();
const int height = size.height();
return QSize(width > 0 && width < QWINDOWSIZE_MAX ?
- qHighDpiToDevicePixels(width, window) : width,
+ QHighDpi::toDevicePixels(width, window) : width,
height > 0 && height < QWINDOWSIZE_MAX ?
- qHighDpiToDevicePixels(height, window) : height);
+ QHighDpi::toDevicePixels(height, window) : height);
}
QT_END_NAMESPACE