summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2023-10-20 07:14:13 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-10-20 11:51:08 +0000
commit4946831442051221c92ba9ad7bee919f080f49ca (patch)
tree7853ac4578bb78cce9dc488d302f64f9efd2e20f
parentbd241239af8060d177cc647aba08980b41d8e386 (diff)
Doc: Add missing parentheses to code snippet
Fixes: QTBUG-118399 Change-Id: I88463ab2089ec423472b3bf12a168df92b6ab573 Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io> Reviewed-by: Safiyyah Moosa <safiyyah.moosa@qt.io> (cherry picked from commit 8f7e8e51ef41a68954dfd57c63eaca681cb62cef) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/render/materialsystem/qmaterial.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/materialsystem/qmaterial.cpp b/src/render/materialsystem/qmaterial.cpp
index 8fb7581f4..adb052f7d 100644
--- a/src/render/materialsystem/qmaterial.cpp
+++ b/src/render/materialsystem/qmaterial.cpp
@@ -133,8 +133,8 @@
// Set different parameters on the materials
const QString parameterName = QStringLiteral("color");
- material1->addParameter(new QParameter(parameterName, QColor::fromRgbF(0.0f, 1.0f, 0.0f, 1.0f);
- material2->addParameter(new QParameter(parameterName, QColor::fromRgbF(1.0f, 1.0f, 1.0f, 1.0f);
+ material1->addParameter(new QParameter(parameterName, QColor::fromRgbF(0.0f, 1.0f, 0.0f, 1.0f)));
+ material2->addParameter(new QParameter(parameterName, QColor::fromRgbF(1.0f, 1.0f, 1.0f, 1.0f)));
\endcode