summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2023-07-13 16:50:03 +0200
committerAxel Spoerl <axel.spoerl@qt.io>2023-07-14 18:40:43 +0200
commita4ca9e80658bca7dad1529f03c1b59173a6ecf62 (patch)
treed78c94fccd4293e4f94f16c38597177b554a5c67 /src/gui/kernel
parentdbb072eb2838a04e89e34dad686394a496d5de87 (diff)
Implement virtual void QPlatformWindow::setBackingStore()
QWidget re-uses an existing backing store. Platform windows depend on being associated to a backing store, in case they become toplevel windows. If a platform window gets deleted and re-created each time it is shown or hidden, it has to be manually associated to the re-used backing store. This patch partly reverts fbf0aeea7d3b38ced7a16fcd5c3e2e9b45536292. It removes Android specific code from QWidgetPrivate::create(), which has been added to suppress re-using backing stores in the absence of the new API. Fixes: QTBUG-97482 Pick-to: 6.6 Change-Id: Iaa1b7652efa120ec1955914c0383e8ccd8a41429 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qplatformwindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformwindow.h b/src/gui/kernel/qplatformwindow.h
index b6e96a457e..6e2d823c4a 100644
--- a/src/gui/kernel/qplatformwindow.h
+++ b/src/gui/kernel/qplatformwindow.h
@@ -32,6 +32,7 @@ class QScreen;
class QWindow;
class QIcon;
class QRegion;
+class QPlatformBackingStore;
class Q_GUI_EXPORT QPlatformWindow : public QPlatformSurface
{
@@ -117,6 +118,7 @@ public:
virtual void requestUpdate();
bool hasPendingUpdateRequest() const;
virtual void deliverUpdateRequest();
+ virtual void setBackingStore(QPlatformBackingStore *) {}
// Window property accessors. Platform plugins should use these
// instead of accessing QWindow directly.