diff options
author | senator <senator> | 2007-08-22 10:23:33 +0000 |
---|---|---|
committer | senator <senator> | 2007-08-22 10:23:33 +0000 |
commit | 47750e70ba9171c10e32a1033b68ae2b614799fa (patch) | |
tree | 5b799493a9d2941ba26e540570a4121b764b950a /client/widgets/widget.cc | |
parent | 50496c06eebb902d75e13667da0d87c9f454424a (diff) |
name have moved to widget in all classes. combobox is a dummy so far
Diffstat (limited to 'client/widgets/widget.cc')
-rw-r--r-- | client/widgets/widget.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/widgets/widget.cc b/client/widgets/widget.cc index 8bbb3a8..910d80b 100644 --- a/client/widgets/widget.cc +++ b/client/widgets/widget.cc @@ -26,6 +26,18 @@ */ #include "widget.h" +Widget::Widget(QDomNode node) +{ + QDomElement elem = node.toElement(); + + if(elem.hasAttribute("name")) { + widget_name = elem.attribute("name"); + } else { + printf("XML ERROR!! Unnamed widget of type: %s\n", + elem.tagName().toStdString().c_str()); + } +} + QString Widget::getName() { return widget_name; |