Make commit() call in QTouchEventWidgetSequence explicit

Calling commit() in the QTouchEventWidgetSequence destructor bypasses
the vtable. This causes a compiler warning.

This patch eliminates the warning by explicitly calling
QTouchEventWidgetSequence::commit().

Change-Id: I1354aa22d2a85a609adc307338d118c5789df93f
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
(cherry picked from commit feed452a9987a4629b03d3bc4a629ba7978ab7ba)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Axel Spoerl 2022-09-20 11:17:28 +02:00 committed by Qt Cherry-pick Bot
parent fab25293b3
commit 2d7f68fac1
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ namespace QTest {
QTouchEventSequence::~QTouchEventSequence() QTouchEventSequence::~QTouchEventSequence()
{ {
if (commitWhenDestroyed) if (commitWhenDestroyed)
commit(); QTouchEventSequence::commit();
} }
QTouchEventSequence& QTouchEventSequence::press(int touchId, const QPoint &pt, QWindow *window) QTouchEventSequence& QTouchEventSequence::press(int touchId, const QPoint &pt, QWindow *window)
{ {

View File

@ -83,7 +83,7 @@ namespace QTest {
QTouchEventWidgetSequence::~QTouchEventWidgetSequence() QTouchEventWidgetSequence::~QTouchEventWidgetSequence()
{ {
if (commitWhenDestroyed) if (commitWhenDestroyed)
commit(); QTouchEventWidgetSequence::commit();
} }
QTouchEventWidgetSequence& QTouchEventWidgetSequence::press(int touchId, const QPoint &pt, QWidget *widget) QTouchEventWidgetSequence& QTouchEventWidgetSequence::press(int touchId, const QPoint &pt, QWidget *widget)