diff options
Diffstat (limited to 'src/gui/kernel/qplatformscreen.cpp')
-rw-r--r-- | src/gui/kernel/qplatformscreen.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gui/kernel/qplatformscreen.cpp b/src/gui/kernel/qplatformscreen.cpp index 0920f46975..f1fe942b9c 100644 --- a/src/gui/kernel/qplatformscreen.cpp +++ b/src/gui/kernel/qplatformscreen.cpp @@ -215,7 +215,6 @@ QDpi QPlatformScreen::logicalBaseDpi() const implementation returns 1.0. \sa QPlatformWindow::devicePixelRatio() - \sa QPlatformScreen::pixelDensity() */ qreal QPlatformScreen::devicePixelRatio() const { @@ -223,24 +222,6 @@ qreal QPlatformScreen::devicePixelRatio() const } /*! - Reimplement this function in subclass to return the pixel density of the - screen. This is the scale factor needed to make a low-dpi application - usable on this screen. The default implementation returns 1.0. - - Returning something else than 1.0 from this function causes Qt to - apply the scale factor to the application's coordinate system. - This is different from devicePixelRatio, which reports a scale - factor already applied by the windowing system. A platform plugin - typically implements one (or none) of these two functions. - - \sa QPlatformWindow::devicePixelRatio() -*/ -qreal QPlatformScreen::pixelDensity() const -{ - return 1.0; -} - -/*! Reimplement this function in subclass to return the vertical refresh rate of the screen, in Hz. |