Commit 9c4e991a authored by Laurent Montel's avatar Laurent Montel
Browse files

Adapt to QQuickItem::geometryChanged() rename in Qt6

parent c49d340d
Pipeline #149746 passed with stage
in 4 minutes and 59 seconds
......@@ -40,11 +40,18 @@ bool RubberBand::intersects(const QRectF &rect) const
return m_geometry.intersects(rect);
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
void RubberBand::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
#else
void RubberBand::geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry)
#endif
{
Q_UNUSED(oldGeometry);
m_geometry = newGeometry;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QQuickItem::geometryChanged(newGeometry, oldGeometry);
#else
QQuickItem::geometryChange(newGeometry, oldGeometry);
#endif
}
......@@ -22,7 +22,11 @@ public:
Q_INVOKABLE bool intersects(const QRectF &rect) const;
protected:
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
#else
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override;
#endif
private:
QRectF m_geometry;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment