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.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/client/widgets/widget.h b/client/widgets/widget.h
index ef22c18..3315c2e 100644
--- a/client/widgets/widget.h
+++ b/client/widgets/widget.h
@@ -52,7 +52,8 @@ public:
virtual QString value() = 0;
virtual void setValue(QString value, QString source) = 0;
- bool valid();
+ // Set deep to true to validate inner widgets.
+ bool valid(bool deep = false);
void setValid(bool valid);
// Implement in subclasses to contribute to the validation.
@@ -69,16 +70,9 @@ public:
virtual bool setKeyboardFocus();
- /*
- void setInitialValue(QString value);
- bool hasInitialValue();
- virtual void reset();
- */
-
QWidget *qwidget() { return widget; }
- // Set deep to true to find widgets inside altcombobox, multilist and
- // metawidgets.
+ // Set deep to true to search through inner widgets.
Widget *findWidget(QString name, bool deep = false);
QVector< Widget* > widgetList(bool deep = false);
void addChild(Widget *widget);
@@ -120,14 +114,6 @@ private:
bool hasOnChangeEvent;
QString onChangeEventScript;
-
- /*
- QString initial_value;
- QString initial_source;
- bool has_initial_value;
- QString prefilled;
- */
-
};
#endif/*__PRACRO_WIDGET_H__*/