Last change
on this file since 313 was 269, checked in by Sanahuja Guillaume, 6 years ago |
flairgcs:
speed up processing time when receiving datas from uav
triger watchdog while receiving datas from uav
(avoids connection lost in uav)
|
File size:
610 bytes
|
Rev | Line | |
---|
[10] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[10] | 4 | // %flair:license}
|
---|
[9] | 5 | #include "Label.h"
|
---|
| 6 | #include "Layout.h"
|
---|
| 7 | #include <QLabel>
|
---|
| 8 |
|
---|
[15] | 9 | Label::Label(Layout *parent, int row, int col, QString name)
|
---|
| 10 | : XmlWidget(name, "Label", parent) {
|
---|
[9] | 11 |
|
---|
[15] | 12 | label = new QLabel();
|
---|
| 13 | label->setObjectName(name);
|
---|
| 14 | visible_widget = label;
|
---|
[9] | 15 |
|
---|
[15] | 16 | parent->addWidget(label, row, col);
|
---|
[9] | 17 |
|
---|
[15] | 18 | // pour ne pas faire de doublons qd on change le texte
|
---|
| 19 | SetIsExpandable(true);
|
---|
[9] | 20 | }
|
---|
| 21 |
|
---|
[15] | 22 | Label::~Label() {}
|
---|
[9] | 23 |
|
---|
[269] | 24 | void Label::XmlEvent(QDomElement *dom) {
|
---|
| 25 | label->setText(dom->attribute("value"));
|
---|
[9] | 26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.