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:
parent
fab25293b3
commit
2d7f68fac1
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user