source: flair-src/trunk/tools/FlairGCS/src/Label.cpp @ 9

Last change on this file since 9 was 9, checked in by Sanahuja Guillaume, 5 years ago

gcs

File size: 471 bytes
Line 
1#include "Label.h"
2#include "Layout.h"
3#include <QLabel>
4
5Label::Label(Layout* parent,int row, int col,QString name):XmlWidget(name,"Label",parent)
6{
7
8    label = new QLabel();
9    label->setObjectName(name);
10    visible_widget=label;
11
12    parent->addWidget(label,row,col);
13
14    //pour ne pas faire de doublons qd on change le texte
15    SetIsExpandable(true);
16}
17
18Label::~Label()
19{
20
21}
22
23void Label::XmlEvent(QDomElement dom)
24{
25    label->setText(dom.attribute("value"));
26}
Note: See TracBrowser for help on using the repository browser.