diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-11-29 10:43:41 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-12-01 02:23:51 +0100 |
commit | 9dc3ed288a862889b3ec3458b4a1b8969f7884f6 (patch) | |
tree | c89bbfd3535bf871a368656e7045c10002d61b98 /tests/manual | |
parent | 60968090adfc7dca78b9d60a0fe79cab4e2e6937 (diff) |
Fix up rhiwidget manual test after the QWidgetPrivate change
Change-Id: Id3e8d8ce7e175be9b5e9e83e23910546d69a90fa
Reviewed-by: Kristoffer Skau <kristoffer.skau@qt.io>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/rhi/rhiwidget/rhiwidget_p.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/manual/rhi/rhiwidget/rhiwidget_p.h b/tests/manual/rhi/rhiwidget/rhiwidget_p.h index df3e016fea..b5cd058a94 100644 --- a/tests/manual/rhi/rhiwidget/rhiwidget_p.h +++ b/tests/manual/rhi/rhiwidget/rhiwidget_p.h @@ -13,7 +13,13 @@ class QRhiWidgetPrivate : public QWidgetPrivate { Q_DECLARE_PUBLIC(QRhiWidget) public: - QRhiTexture *texture() const override { return textureInvalid ? nullptr : t; } + TextureData texture() const override + { + TextureData td; + if (!textureInvalid) + td.textureLeft = t; + return td; + } QPlatformBackingStoreRhiConfig rhiConfig() const override; void ensureRhi(); |