summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/datavisualization/data/qcustom3ditem.cpp1
-rw-r--r--tests/qmlcamera/qml/qmlcamera/main.qml2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/datavisualization/data/qcustom3ditem.cpp b/src/datavisualization/data/qcustom3ditem.cpp
index 0428d59b..3254ac3b 100644
--- a/src/datavisualization/data/qcustom3ditem.cpp
+++ b/src/datavisualization/data/qcustom3ditem.cpp
@@ -349,6 +349,7 @@ QImage QCustom3DItemPrivate::textureImage()
void QCustom3DItemPrivate::clearTextureImage()
{
m_textureImage = QImage();
+ m_textureFile.clear();
}
void QCustom3DItemPrivate::resetDirtyBits()
diff --git a/tests/qmlcamera/qml/qmlcamera/main.qml b/tests/qmlcamera/qml/qmlcamera/main.qml
index d32140e7..d2109772 100644
--- a/tests/qmlcamera/qml/qmlcamera/main.qml
+++ b/tests/qmlcamera/qml/qmlcamera/main.qml
@@ -182,7 +182,7 @@ Rectangle {
property bool addObject: false
onClicked: {
if (addObject === true) {
- shuttleItem.textureFile(":/items/shuttle.png")
+ shuttleItem.textureFile = ":/items/shuttle.png"
testChart.addCustomItem(shuttleItem)
text = "Remove Shuttle"
addObject = false