summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/declarative/fx/qfxrect.cpp2
-rw-r--r--src/declarative/fx/qfxrect_p.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxrect.cpp b/src/declarative/fx/qfxrect.cpp
index f55357f..fd8d9ca 100644
--- a/src/declarative/fx/qfxrect.cpp
+++ b/src/declarative/fx/qfxrect.cpp
@@ -391,6 +391,8 @@ void QFxRect::dump(int depth)
// steelblue rect using SVG color name
Rect { color: "steelblue" }
\endqml
+
+ The default color is white.
*/
/*!
diff --git a/src/declarative/fx/qfxrect_p.h b/src/declarative/fx/qfxrect_p.h
index f662fac..23bb944 100644
--- a/src/declarative/fx/qfxrect_p.h
+++ b/src/declarative/fx/qfxrect_p.h
@@ -72,7 +72,7 @@ public:
#if defined(QFX_RENDER_OPENGL)
rectTexture(0),
#endif //QFX_RENDER_OPENGL
- gradient(0), pen(0), radius(0)
+ color(Qt::white), gradient(0), pen(0), radius(0)
{
}