summaryrefslogtreecommitdiffstats
path: root/src/graphicsitems/qxrectangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsitems/qxrectangle.cpp')
-rw-r--r--src/graphicsitems/qxrectangle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphicsitems/qxrectangle.cpp b/src/graphicsitems/qxrectangle.cpp
index 6d240c5..7f14153 100644
--- a/src/graphicsitems/qxrectangle.cpp
+++ b/src/graphicsitems/qxrectangle.cpp
@@ -239,7 +239,7 @@ void QxRectangle::componentComplete()
QxItem::componentComplete();
Q_ASSERT(d->node == 0);
- d->node = qt_adaptation_layer()->createRectangleNode();
+ d->node = QSGContext::current->createRectangleNode();
d->node->setColor(d->color);
d->node->setRadius(d->radius);
d->node->setRect(QRectF(0, 0, width(), height()));