Qt6 incompatibilities fixed

This commit is contained in:
Uwe Rathmann 2020-10-26 17:52:08 +01:00
parent fc5a9f2038
commit 8e410a9e4b

View File

@ -154,12 +154,22 @@ namespace
} }
protected: protected:
#if QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 )
void geometryChange(
const QRectF& newGeometry, const QRectF& oldGeometry ) override
{
Inherited::geometryChange( newGeometry, oldGeometry );
updateClip();
}
#else
void geometryChanged( void geometryChanged(
const QRectF& newGeometry, const QRectF& oldGeometry ) override const QRectF& newGeometry, const QRectF& oldGeometry ) override
{ {
Inherited::geometryChanged( newGeometry, oldGeometry ); Inherited::geometryChanged( newGeometry, oldGeometry );
updateClip(); updateClip();
} }
#endif
void updateClip() void updateClip()
{ {