summaryrefslogtreecommitdiffstats
path: root/examples/qt3d
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d')
-rw-r--r--examples/qt3d/dynamicscene-cpp/boxentity.cpp3
-rw-r--r--examples/qt3d/dynamicscene-cpp/boxentity.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/qt3d/dynamicscene-cpp/boxentity.cpp b/examples/qt3d/dynamicscene-cpp/boxentity.cpp
index 3ab25fed0..f816b172f 100644
--- a/examples/qt3d/dynamicscene-cpp/boxentity.cpp
+++ b/examples/qt3d/dynamicscene-cpp/boxentity.cpp
@@ -46,7 +46,8 @@ BoxEntity::BoxEntity(QNode *parent)
, m_angle(0.0f)
, m_radius(1.0f)
{
- connect(m_material, SIGNAL(diffuseChanged()), this, SIGNAL(diffuseColorChanged()));
+ connect(m_material, SIGNAL(diffuseChanged(const QColor &)),
+ this, SIGNAL(diffuseColorChanged(const QColor &)));
m_material->setAmbient(Qt::gray);
m_material->setSpecular(Qt::white);
m_material->setShininess(150.0f);
diff --git a/examples/qt3d/dynamicscene-cpp/boxentity.h b/examples/qt3d/dynamicscene-cpp/boxentity.h
index cd12bad36..ca8cdb1b6 100644
--- a/examples/qt3d/dynamicscene-cpp/boxentity.h
+++ b/examples/qt3d/dynamicscene-cpp/boxentity.h
@@ -63,7 +63,7 @@ public Q_SLOTS:
void setRadius(float arg);
Q_SIGNALS:
- void diffuseColorChanged();
+ void diffuseColorChanged(const QColor &);
void angleChanged();
void radiusChanged();