From b7cfd0990eb279439badd80ee7196849eece0f7b Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 22 Aug 2022 18:53:11 +0400 Subject: [PATCH] Fix build without highdpiscaling feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: QTBUG-104925 Change-Id: Ieb5dd2194c54a61733c427c8a0ddf7576147d6ea Reviewed-by: Tor Arne Vestbø (cherry picked from commit c2bcba0d3cf550ede0488b40b8a5f81be817a65c) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qhighdpiscaling_p.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/kernel/qhighdpiscaling_p.h b/src/gui/kernel/qhighdpiscaling_p.h index 31d1cfe7843..f9deae136dc 100644 --- a/src/gui/kernel/qhighdpiscaling_p.h +++ b/src/gui/kernel/qhighdpiscaling_p.h @@ -343,6 +343,9 @@ public: }; namespace QHighDpi { + template inline + T scale(const T &value, ...) { return value; } + template inline T toNative(const T &value, ...) { return value; } template inline