[rkward-cvs] SF.net SVN: rkward: [1482] trunk/rkward/rkward/plugin
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Mon Feb 26 18:59:50 UTC 2007
Revision: 1482
http://svn.sourceforge.net/rkward/?rev=1482&view=rev
Author: tfry
Date: 2007-02-26 10:59:50 -0800 (Mon, 26 Feb 2007)
Log Message:
-----------
Make sure <stretch> really stretches
Modified Paths:
--------------
trunk/rkward/rkward/plugin/rkstandardcomponent.cpp
trunk/rkward/rkward/plugin/rkvarslot.cpp
Modified: trunk/rkward/rkward/plugin/rkstandardcomponent.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkstandardcomponent.cpp 2007-02-26 18:41:11 UTC (rev 1481)
+++ trunk/rkward/rkward/plugin/rkstandardcomponent.cpp 2007-02-26 18:59:50 UTC (rev 1482)
@@ -507,6 +507,9 @@
} else if (e.tagName () == "stretch") {
QWidget *stretch = new QWidget (parent_widget);
stretch->setSizePolicy (QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
+ QHBox *box = dynamic_cast<QHBox *> (parent_widget);
+ RK_ASSERT (box);
+ if (box) box->setStretchFactor (stretch, 100);
} else if (e.tagName () == "column") {
widget = new RKComponent (component (), parent_widget);
QVBoxLayout *layout = new QVBoxLayout (widget);
Modified: trunk/rkward/rkward/plugin/rkvarslot.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkvarslot.cpp 2007-02-26 18:41:11 UTC (rev 1481)
+++ trunk/rkward/rkward/plugin/rkvarslot.cpp 2007-02-26 18:59:50 UTC (rev 1482)
@@ -40,7 +40,7 @@
XMLHelper *xml = XMLHelper::getStaticHelper ();
// basic layout
- QGridLayout *g_layout = new QGridLayout (this, 4, 3, RKGlobals::spacingHint ());
+ QGridLayout *g_layout = new QGridLayout (this, 3, 3, RKGlobals::spacingHint ());
QLabel *label = new QLabel (xml->getStringAttribute (element, "label", i18n ("Variable:"), DL_INFO), this);
g_layout->addWidget (label, 0, 2);
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