diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2020-09-30 14:41:37 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2020-10-05 10:58:00 +0200 |
commit | f84ba3108c06b50f31e2054bf23b0a8d20f41176 (patch) | |
tree | 65e89f7e1aadbfa58be8f9d94ed33be5e3e6c78f /src/gui/kernel | |
parent | 9103d82d0196ba12263329af7dc37eb056700ece (diff) |
Remove QPlatformScreen::pixelDensity()
This function is no longer in use - Qt Gui now computes
scale factors based on logicalDpi() and logicalBaseDpi()
instead.
Change-Id: Ieb4b75ef4e1563694a8e12b7cdd1f60c419d5bf2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qplatformscreen.cpp | 19 | ||||
-rw-r--r-- | src/gui/kernel/qplatformscreen.h | 1 |
2 files changed, 0 insertions, 20 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. diff --git a/src/gui/kernel/qplatformscreen.h b/src/gui/kernel/qplatformscreen.h index 68dab50ea5..048e785673 100644 --- a/src/gui/kernel/qplatformscreen.h +++ b/src/gui/kernel/qplatformscreen.h @@ -119,7 +119,6 @@ public: virtual QDpi logicalDpi() const; virtual QDpi logicalBaseDpi() const; virtual qreal devicePixelRatio() const; - virtual qreal pixelDensity() const; virtual qreal refreshRate() const; |