macOS: Don't pretend like our backing store is a QRasterBackingStore

We're not using the internal m_image of QRasterBackingStore, nor its
m_requestedSize, so inheriting it was just causing confusion when we
ended up in QRasterBackingStore::scroll(), operating on those members.

Pick-to: 6.2 5.15 5.12
Change-Id: I26561209c0a19777577724728f0ad62e07673577
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Tor Arne Vestbø 2021-09-24 09:51:49 +02:00
parent 9481de80b7
commit 8da42e1af6
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@
QT_BEGIN_NAMESPACE
class QCocoaBackingStore : public QRasterBackingStore
class QCocoaBackingStore : public QPlatformBackingStore
{
protected:
QCocoaBackingStore(QWindow *window);

View File

@ -52,7 +52,7 @@
QT_BEGIN_NAMESPACE
QCocoaBackingStore::QCocoaBackingStore(QWindow *window)
: QRasterBackingStore(window)
: QPlatformBackingStore(window)
{
}