summaryrefslogtreecommitdiff
path: root/client/widgets/frame.cc
diff options
context:
space:
mode:
authorsenator <senator>2007-07-23 07:40:05 +0000
committersenator <senator>2007-07-23 07:40:05 +0000
commit22de7bf19fb6fcce8d11c0e01afdfafa2a8c00d6 (patch)
treeb841931e88a673e04a26f2709066c018d9df4f68 /client/widgets/frame.cc
parentd614b0436f0ce1f060fc80b987ca4209f17c221e (diff)
porting widgets to use QDomNodes
Diffstat (limited to 'client/widgets/frame.cc')
-rw-r--r--client/widgets/frame.cc5
1 files changed, 3 insertions, 2 deletions
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()