summaryrefslogtreecommitdiff
path: root/client/widgets/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/widget.h')
-rw-r--r--client/widgets/widget.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/widgets/widget.h b/client/widgets/widget.h
index 960dca9..2a95294 100644
--- a/client/widgets/widget.h
+++ b/client/widgets/widget.h
@@ -80,6 +80,7 @@ public:
Widget *findWidget(QString name, bool deep = false);
QVector< Widget* > widgetList(bool deep = false);
void addChild(Widget *widget);
+ void setValues();
signals:
void wasChanged();
@@ -96,11 +97,16 @@ protected:
QWidget *widget;
bool hideChildren;
- void widgetBuilder(QDomNode &xml_node, QLayout *layout);
void addChildren(QDomNode &xml_node, QLayout *layout);
private:
QVector< Widget* > children;
+ void createWidget(QDomNode &xml_node, QLayout *layout);
+
+ // Store value in constructor to be set later.
+ bool has_lazy;
+ QString lazy_value;
+ QString lazy_source;
bool is_valid;
QString widget_name;
@@ -114,6 +120,7 @@ private:
QString onChangeEventScript;
QString initial_value;
+ QString initial_source;
bool has_initial_value;
QString prefilled;