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/frame.cc | |
parent | 50496c06eebb902d75e13667da0d87c9f454424a (diff) |
name have moved to widget in all classes. combobox is a dummy so far
Diffstat (limited to 'client/widgets/frame.cc')
-rw-r--r-- | client/widgets/frame.cc | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/client/widgets/frame.cc b/client/widgets/frame.cc index d700b1b..00f1930 100644 --- a/client/widgets/frame.cc +++ b/client/widgets/frame.cc @@ -26,18 +26,26 @@ */ #include "frame.h" -Frame::Frame(QDomNode node) : QGroupBox() +Frame::Frame(QDomNode node) + : QGroupBox(), Widget(node) { QDomElement elem = node.toElement(); - if(elem.hasAttribute("name")) { - widget_name = elem.attribute("name"); + if(elem.hasAttribute("caption")) { + setTitle(elem.attribute("caption")); } else { - printf("XML ERROR!! Unnamed widget of type: %s\n", - elem.tagName().toStdString().c_str()); + setTitle(elem.attribute("")); } - setTitle(elem.attribute("caption")); + if(elem.hasAttribute("border")) { + if(elem.attribute("border") == "true") { + setFlat(false); + } else { + setFlat(true); + } + } else { + setFlat(true); + } } QString Frame::getValue() |