Rev | Line | |
---|
| 1 | // %flair:license{
|
---|
| 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
| 4 | // %flair:license}
|
---|
| 5 | #include "Label.h"
|
---|
| 6 | #include "Layout.h"
|
---|
| 7 | #include <QLabel>
|
---|
| 8 |
|
---|
| 9 | Label::Label(Layout* parent,int row, int col,QString name):XmlWidget(name,"Label",parent)
|
---|
| 10 | {
|
---|
| 11 |
|
---|
| 12 | label = new QLabel();
|
---|
| 13 | label->setObjectName(name);
|
---|
| 14 | visible_widget=label;
|
---|
| 15 |
|
---|
| 16 | parent->addWidget(label,row,col);
|
---|
| 17 |
|
---|
| 18 | //pour ne pas faire de doublons qd on change le texte
|
---|
| 19 | SetIsExpandable(true);
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | Label::~Label()
|
---|
| 23 | {
|
---|
| 24 |
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | void Label::XmlEvent(QDomElement dom)
|
---|
| 28 | {
|
---|
| 29 | label->setText(dom.attribute("value"));
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.