From 07c234ae0be8a642256b77d9df9fe9aac6feda38 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Wed, 25 Jan 2023 08:32:33 +0800 Subject: [PATCH] Windows QPA: make one function static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It doesn't use any non-static functions or variables, so it can be static, and a function that sets a process's DPI awareness mode doesn't need to be non-static anyway. Change-Id: I4cc6e0f423b6cd4cf43d8afed86f26b5d04e3605 Reviewed-by: Timothée Keller Reviewed-by: Oliver Wolff --- src/plugins/platforms/windows/qwindowscontext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/windows/qwindowscontext.h b/src/plugins/platforms/windows/qwindowscontext.h index 21e841a886a..1a3b47be5e3 100644 --- a/src/plugins/platforms/windows/qwindowscontext.h +++ b/src/plugins/platforms/windows/qwindowscontext.h @@ -116,7 +116,7 @@ public: static void setTabletAbsoluteRange(int a); - bool setProcessDpiAwareness(QtWindows::DpiAwareness dpiAwareness); + static bool setProcessDpiAwareness(QtWindows::DpiAwareness dpiAwareness); static QtWindows::DpiAwareness processDpiAwareness(); static QtWindows::DpiAwareness windowDpiAwareness(HWND hwnd);