From 22de7bf19fb6fcce8d11c0e01afdfafa2a8c00d6 Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 23 Jul 2007 07:40:05 +0000 Subject: porting widgets to use QDomNodes --- client/widgets/frame.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/widgets/frame.cc') diff --git a/client/widgets/frame.cc b/client/widgets/frame.cc index 285619a..0ea7d25 100644 --- a/client/widgets/frame.cc +++ b/client/widgets/frame.cc @@ -26,9 +26,10 @@ */ #include "frame.h" -Frame::Frame(QWidget *parent, QString caption) : QGroupBox(parent) +Frame::Frame(QDomNode node) : QGroupBox() { - setTitle(caption); + QDomElement elem = node.toElement(); + setTitle(elem.attribute("caption")); } QString Frame::getValue() -- cgit v1.2.3