[rkward-cvs] SF.net SVN: rkward: [1652] trunk/rkward/rkward/plugin/rkstandardcomponent. cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Mar 20 00:01:07 UTC 2007


Revision: 1652
          http://svn.sourceforge.net/rkward/?rev=1652&view=rev
Author:   tfry
Date:     2007-03-19 17:01:07 -0700 (Mon, 19 Mar 2007)

Log Message:
-----------
Stretch may be useful inside a <frame>, so don't complain about this.

Modified Paths:
--------------
    trunk/rkward/rkward/plugin/rkstandardcomponent.cpp

Modified: trunk/rkward/rkward/plugin/rkstandardcomponent.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkstandardcomponent.cpp	2007-03-20 00:00:29 UTC (rev 1651)
+++ trunk/rkward/rkward/plugin/rkstandardcomponent.cpp	2007-03-20 00:01:07 UTC (rev 1652)
@@ -506,7 +506,7 @@
 			QWidget *stretch = new QWidget (parent_widget);
 			stretch->setSizePolicy (QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
 			QHBox *box = dynamic_cast<QHBox *> (parent_widget);
-			RK_ASSERT (box);
+			// RK_ASSERT (box);  <- NO, also meaningful in a <frame>
 			if (box) box->setStretchFactor (stretch, 100);
 		} else if (e.tagName () == "column") {
 			widget = new RKComponent (component (), parent_widget);


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