From c5e993ad507cc0d56d0e2a62076584d020086ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Wed, 14 May 2014 07:33:23 +0300 Subject: Use blending for custom items only when needed Task-number: QTRD-3077 Change-Id: I2406a8fd133943379a5cb1c1c2961a419ef9315f Reviewed-by: Titta Heikkala Reviewed-by: Miikka Heikkinen --- examples/datavisualization/customitems/customitemgraph.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/datavisualization/customitems') diff --git a/examples/datavisualization/customitems/customitemgraph.cpp b/examples/datavisualization/customitems/customitemgraph.cpp index e0344232..14117580 100644 --- a/examples/datavisualization/customitems/customitemgraph.cpp +++ b/examples/datavisualization/customitems/customitemgraph.cpp @@ -105,7 +105,7 @@ void CustomItemGraph::toggleItemOne(bool show) //! [1] if (show) { //! [0] - QImage color = QImage(2, 2, QImage::Format_ARGB32); + QImage color = QImage(2, 2, QImage::Format_RGB32); color.fill(Qt::red); //! [0] //! [2] @@ -128,7 +128,7 @@ void CustomItemGraph::toggleItemTwo(bool show) { QVector3D positionTwo = QVector3D(34.5f, 77.0f, 23.4f); if (show) { - QImage color = QImage(2, 2, QImage::Format_ARGB32); + QImage color = QImage(2, 2, QImage::Format_RGB32); color.fill(Qt::red); QCustom3DItem *item = new QCustom3DItem(); item->setMeshFile(":/items/oilrig.obj"); @@ -146,7 +146,7 @@ void CustomItemGraph::toggleItemThree(bool show) { QVector3D positionThree = QVector3D(34.5f, 86.0f, 19.1f); if (show) { - QImage color = QImage(2, 2, QImage::Format_ARGB32); + QImage color = QImage(2, 2, QImage::Format_RGB32); color.fill(Qt::darkMagenta); QCustom3DItem *item = new QCustom3DItem(); item->setMeshFile(":/items/refinery.obj"); -- cgit v1.2.3