Tried various fixes for this such as moving the constructor definition for Settings() to outside the class definition. No help.
Finally stumbled upon this article here that said the problem was due to two or more unnamed structures in a class definition. Indeed the Settings() class has three. Simple solution therefore is to name the structures grid_struct, curve_struct and canvas_struct. Compiler error goes away now.
See diff below.
David
===================================================================
--- examples/refreshtest/settings.h (revision 689)
+++ examples/refreshtest/settings.h (working copy)
@@ -40,12 +40,12 @@
updateInterval = 20;
}
- struct
+ struct grid_struct
{
} grid;
- struct
+ struct curve_struct
{
@@ -56,7 +56,7 @@
bool lineSplitting;
} curve;
- struct
+ struct canvas_struct
{
bool cached;
bool paintOnScreen;
===================================================================
--- examples/refreshtest/settings.h (revision 689)
+++ examples/refreshtest/settings.h (working copy)
@@ -40,12 +40,12 @@
updateInterval = 20;
}
- struct
+ struct grid_struct
{
QPen pen;
} grid;
- struct
+ struct curve_struct
{
QPen pen;
QBrush brush;
@@ -56,7 +56,7 @@
bool lineSplitting;
} curve;
- struct
+ struct canvas_struct
{
bool cached;
bool paintOnScreen;
To copy to clipboard, switch view to plain text mode
Bookmarks