[rkward-cvs] SF.net SVN: rkward:[4253] trunk/rkward/rkward/plugin/rkcomponent.h

tfry at users.sourceforge.net tfry at users.sourceforge.net
Wed May 16 14:34:47 UTC 2012


Revision: 4253
          http://rkward.svn.sourceforge.net/rkward/?rev=4253&view=rev
Author:   tfry
Date:     2012-05-16 14:34:46 +0000 (Wed, 16 May 2012)
Log Message:
-----------
addChild() must be virtual, since Wizards need to keep track of which components are on a page.

Modified Paths:
--------------
    trunk/rkward/rkward/plugin/rkcomponent.h

Modified: trunk/rkward/rkward/plugin/rkcomponent.h
===================================================================
--- trunk/rkward/rkward/plugin/rkcomponent.h	2012-05-10 22:12:08 UTC (rev 4252)
+++ trunk/rkward/rkward/plugin/rkcomponent.h	2012-05-16 14:34:46 UTC (rev 4253)
@@ -104,7 +104,7 @@
 /** set to required: will only be satisfied if it is valid (and all it's children). Else: always satisfied (but subclasses might override to always be dissatisfied on really bad values. By default RKComponentBase is required at construction */
 	void setRequired (bool require) { required = require; };
 /** simple convenience function to add a child to the map of children */
-	void addChild (const QString &id, RKComponentBase *child);
+	virtual void addChild (const QString &id, RKComponentBase *child);
 
 /** serialize the state of this component / property and all its children. Note: Only the non-internal property-values are serialzed, not the components / properties themselves. @see fetchPropertyValuesRecursive() */
 	QString serializeState () const;

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rkward-tracker mailing list