From 4946831442051221c92ba9ad7bee919f080f49ca Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Fri, 20 Oct 2023 07:14:13 +0200 Subject: Doc: Add missing parentheses to code snippet Fixes: QTBUG-118399 Change-Id: I88463ab2089ec423472b3bf12a168df92b6ab573 Reviewed-by: Andreas Eliasson Reviewed-by: Safiyyah Moosa (cherry picked from commit 8f7e8e51ef41a68954dfd57c63eaca681cb62cef) Reviewed-by: Qt Cherry-pick Bot --- src/render/materialsystem/qmaterial.cpp | 4 ++-- 1 file 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 -- cgit v1.2.3