From 47750e70ba9171c10e32a1033b68ae2b614799fa Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 22 Aug 2007 10:23:33 +0000 Subject: name have moved to widget in all classes. combobox is a dummy so far --- client/widgets/window.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'client/widgets/window.cc') diff --git a/client/widgets/window.cc b/client/widgets/window.cc index 217bf21..31f51bf 100644 --- a/client/widgets/window.cc +++ b/client/widgets/window.cc @@ -26,17 +26,11 @@ */ #include "window.h" -Window::Window(QDomNode node) : QWidget(NULL) +Window::Window(QDomNode node) + : QWidget(NULL), Widget(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()); - } - if(elem.hasAttribute("width")) { setMinimumWidth(elem.attribute("width").toInt()); } -- cgit v1.2.3