summaryrefslogtreecommitdiff
path: root/client/widgets/widget.cc
diff options
context:
space:
mode:
authorsenator <senator>2007-09-11 12:29:28 +0000
committersenator <senator>2007-09-11 12:29:28 +0000
commit1a0bd4c03c4045d9cc1b3c0bcec39487fa9c5486 (patch)
tree2b9933c3e38032079b6b594e1ba1636eca054343 /client/widgets/widget.cc
parent07ff9de80d37dc0cd33feb027628eb95c1fccd35 (diff)
added layout to window and frame windgets
Diffstat (limited to 'client/widgets/widget.cc')
-rw-r--r--client/widgets/widget.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/widgets/widget.cc b/client/widgets/widget.cc
index 910d80b..7b62f36 100644
--- a/client/widgets/widget.cc
+++ b/client/widgets/widget.cc
@@ -26,12 +26,16 @@
*/
#include "widget.h"
+//Widget::Widget(QString parent_name, QDomNode node)
Widget::Widget(QDomNode node)
{
QDomElement elem = node.toElement();
if(elem.hasAttribute("name")) {
- widget_name = elem.attribute("name");
+ //if(parent_name != "")
+ // widget_name = parent_name + "." + elem.attribute("name");
+ //else
+ widget_name = elem.attribute("name");
} else {
printf("XML ERROR!! Unnamed widget of type: %s\n",
elem.tagName().toStdString().c_str());