summaryrefslogtreecommitdiff
path: root/client/widgets/widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/widget.cc')
-rw-r--r--client/widgets/widget.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/widgets/widget.cc b/client/widgets/widget.cc
index e5ec498..1518231 100644
--- a/client/widgets/widget.cc
+++ b/client/widgets/widget.cc
@@ -62,7 +62,7 @@ Widget::Widget(QDomNode &node, MacroWindow *macrowindow)
*/
has_lazy = elem.hasAttribute("name") && elem.hasAttribute("value");
lazy_value = elem.attribute("value", "");
- lazy_source = elem.attribute("prefilled", "pracro");
+ lazy_source = elem.attribute("prefilled", "prefilled");
if((hasOnChangeEvent = elem.hasAttribute("onChange"))) {
onChangeEventScript = elem.attribute("onChange");
@@ -111,12 +111,12 @@ bool Widget::local()
return widget_local;
}
-bool Widget::valid()
+bool Widget::valid(bool deep)
{
if(preValid() == false) return false;
if(is_valid == false) return false;
- if(hideChildren) return true;
+ if(hideChildren && deep == false) return true;
QVector< Widget* >::iterator i = children.begin();
while(i != children.end()) {
@@ -217,6 +217,7 @@ void Widget::addChild(Widget *widget)
}
children.push_back(widget);
connect(widget, SIGNAL(wasChanged()), this, SLOT(childWasChanged()));
+ //widget->setParent(this);
}
void Widget::addChildren(QDomNode &node, QLayout *layout)