Commit 08458d0d authored by Marc Mutz's avatar Marc Mutz
Browse files

Examples: don't set colors as strings


Use the 3-int ctor of QColor instead.

Change-Id: Ib00e3f6c93a153dfdaddde6e72cb6f8f3234fdc4
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: default avatarMiikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: default avatarLars Knoll <lars.knoll@qt.io>
Showing with 3 additions and 3 deletions
......@@ -73,7 +73,7 @@ int main(int argc, char *argv[])
viewer.setTitle(QStringLiteral("Render into FrameBuffer"));
viewer.setResizeMode(QQuickView::SizeRootObjectToView);
viewer.setColor("#f2f2f2");
viewer.setColor(QColor(0xf2, 0xf2, 0xf2));
viewer.show();
return app.exec();
......
......@@ -73,7 +73,7 @@ int main(int argc, char *argv[])
viewer.setTitle(QStringLiteral("Interaction"));
viewer.setResizeMode(QQuickView::SizeRootObjectToView);
viewer.setColor("#fafafa");
viewer.setColor(QColor(0xfa, 0xfa, 0xfa));
viewer.show();
return app.exec();
......
......@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
viewer.setTitle(QStringLiteral("Textured and Lit Cube"));
viewer.setResizeMode(QQuickView::SizeRootObjectToView);
viewer.setColor("#fafafa");
viewer.setColor(QColor(0xfa, 0xfa, 0xfa));
viewer.show();
return app.exec();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment