From 95291e4a8a8e9728c0c56b0a1ae0298b95d5e1c3 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 2 Aug 2023 08:18:57 +0200 Subject: [PATCH] QPlatformWindow: add a macro when setBackingStore() is virtual This is the only way to detect, and act upon, the addition of the virtual function in other Qt modules. Amends a4ca9e80658bca7dad1529f03c1b59173a6ecf62. Task-number: QTBUG-97482 Task-number: QTBUG-115691 Change-Id: Id32fdd3d8af1fced17983dd104318645a5578b8c Reviewed-by: Axel Spoerl (cherry picked from commit f91588923b1e7b68f1bd79b38af44d024df85996) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qplatformwindow.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/kernel/qplatformwindow.h b/src/gui/kernel/qplatformwindow.h index 6e2d823c4ad..517dd1ea421 100644 --- a/src/gui/kernel/qplatformwindow.h +++ b/src/gui/kernel/qplatformwindow.h @@ -118,6 +118,7 @@ public: virtual void requestUpdate(); bool hasPendingUpdateRequest() const; virtual void deliverUpdateRequest(); +#define QT_PLATFORM_WINDOW_HAS_VIRTUAL_SET_BACKING_STORE // remove when all modules have migrated virtual void setBackingStore(QPlatformBackingStore *) {} // Window property accessors. Platform plugins should use these