summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-08-02 08:18:57 +0200
committerMarc Mutz <marc.mutz@qt.io>2023-08-02 14:02:33 +0200
commitf91588923b1e7b68f1bd79b38af44d024df85996 (patch)
tree60c44f419ff9739e1f467bbfd3ea3f9cc09f53cb
parentc91146b9eff65cd8c860d26e09242795300a6b14 (diff)
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. Pick-to: 6.6 Task-number: QTBUG-97482 Task-number: QTBUG-115691 Change-Id: Id32fdd3d8af1fced17983dd104318645a5578b8c Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
-rw-r--r--src/gui/kernel/qplatformwindow.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformwindow.h b/src/gui/kernel/qplatformwindow.h
index 6e2d823c4a..517dd1ea42 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