[rkward-cvs] SF.net SVN: rkward: [1292] trunk/rkward/rkward/plugin/rkstandardcomponent. cpp
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Fri Feb 2 11:08:37 UTC 2007
Revision: 1292
http://svn.sourceforge.net/rkward/?rev=1292&view=rev
Author: tfry
Date: 2007-02-02 03:08:37 -0800 (Fri, 02 Feb 2007)
Log Message:
-----------
Fix bug preventing passive element to gain an id
Modified Paths:
--------------
trunk/rkward/rkward/plugin/rkstandardcomponent.cpp
Modified: trunk/rkward/rkward/plugin/rkstandardcomponent.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkstandardcomponent.cpp 2007-02-02 08:36:19 UTC (rev 1291)
+++ trunk/rkward/rkward/plugin/rkstandardcomponent.cpp 2007-02-02 11:08:37 UTC (rev 1292)
@@ -442,7 +442,7 @@
layout->addWidget (box);
buildElement (e, box, false);
} else if (e.tagName () == "row") {
- RKComponent *widget = new RKComponent (component (), parent_widget); // wrapping this (and column, frame below) inside an RKComponent has the benefit, that it can have an id, and hence can be set to visibile/hidden, enabled/disabled
+ widget = new RKComponent (component (), parent_widget); // wrapping this (and column, frame below) inside an RKComponent has the benefit, that it can have an id, and hence can be set to visibile/hidden, enabled/disabled
QVBoxLayout *layout = new QVBoxLayout (widget);
QHBox *box = new QHBox (widget);
box->setSpacing (RKGlobals::spacingHint ());
@@ -452,14 +452,14 @@
QWidget *stretch = new QWidget (parent_widget);
stretch->setSizePolicy (QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
} else if (e.tagName () == "column") {
- RKComponent *widget = new RKComponent (component (), parent_widget);
+ widget = new RKComponent (component (), parent_widget);
QVBoxLayout *layout = new QVBoxLayout (widget);
QVBox *box = new QVBox (widget);
box->setSpacing (RKGlobals::spacingHint ());
layout->addWidget (box);
buildElement (e, box, false);
} else if (e.tagName () == "frame") {
- RKComponent *widget = new RKComponent (component (), parent_widget);
+ widget = new RKComponent (component (), parent_widget);
QVBoxLayout *layout = new QVBoxLayout (widget);
QGroupBox *box = new QGroupBox (1, Qt::Horizontal, e.attribute ("label"), widget);
box->setInsideSpacing (RKGlobals::spacingHint ());
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