[rkward-cvs] SF.net SVN: rkward: [1400] trunk/rkward/rkward/plugin
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Fri Feb 16 09:58:41 UTC 2007
Revision: 1400
http://svn.sourceforge.net/rkward/?rev=1400&view=rev
Author: tfry
Date: 2007-02-16 01:58:41 -0800 (Fri, 16 Feb 2007)
Log Message:
-----------
Make sure to keep code property registered, when switching interfaces
Modified Paths:
--------------
trunk/rkward/rkward/plugin/rkpreviewbox.cpp
trunk/rkward/rkward/plugin/rkstandardcomponent.cpp
Modified: trunk/rkward/rkward/plugin/rkpreviewbox.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkpreviewbox.cpp 2007-02-16 00:16:06 UTC (rev 1399)
+++ trunk/rkward/rkward/plugin/rkpreviewbox.cpp 2007-02-16 09:58:41 UTC (rev 1400)
@@ -60,7 +60,7 @@
code_property = static_cast<RKComponentPropertyCode *> (cp);
connect (code_property, SIGNAL (valueChanged (RKComponentPropertyBase *)), this, SLOT (changedCode (RKComponentPropertyBase *)));
} else {
- RK_DO (qDebug ("Could not find code property in preview box"), PLUGIN, DL_WARNING);
+ RK_DO (qDebug ("Could not find code property in preview box (remainder: %s)", dummy.latin1()), PLUGIN, DL_WARNING);
code_property = 0;
}
Modified: trunk/rkward/rkward/plugin/rkstandardcomponent.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkstandardcomponent.cpp 2007-02-16 00:16:06 UTC (rev 1399)
+++ trunk/rkward/rkward/plugin/rkstandardcomponent.cpp 2007-02-16 09:58:41 UTC (rev 1400)
@@ -258,6 +258,7 @@
gui = 0;
wizard = 0;
+ // clear all properties. Not the code property, as the script backend relies on it
for (QDictIterator<RKComponentBase> it (child_map); it.current (); ++it) {
if (it.current () != code) {
if (it.current ()->isProperty ()) {
@@ -268,7 +269,9 @@
}
}
child_map.clear ();
- createDefaultProperties ();
+ addChild ("code", code);
+
+ createDefaultProperties (); // enabledness, requiredness, visibility
}
void RKStandardComponent::buildAndInitialize (const QDomElement &doc_element, const QDomElement &gui_element, QWidget *parent_widget, bool build_wizard, bool enslaved) {
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