Changeset 15 in flair-src for trunk/tools/FlairGCS/src/Label.cpp


Ignore:
Timestamp:
Apr 8, 2016, 3:40:57 PM (5 years ago)
Author:
Bayard Gildas
Message:

sources reformatted with flair-format-dir script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/Label.cpp

    r10 r15  
    77#include <QLabel>
    88
    9 Label::Label(Layout* parent,int row, int col,QString name):XmlWidget(name,"Label",parent)
    10 {
     9Label::Label(Layout *parent, int row, int col, QString name)
     10    : XmlWidget(name, "Label", parent) {
    1111
    12     label = new QLabel();
    13     label->setObjectName(name);
    14     visible_widget=label;
     12  label = new QLabel();
     13  label->setObjectName(name);
     14  visible_widget = label;
    1515
    16     parent->addWidget(label,row,col);
     16  parent->addWidget(label, row, col);
    1717
    18     //pour ne pas faire de doublons qd on change le texte
    19     SetIsExpandable(true);
     18  // pour ne pas faire de doublons qd on change le texte
     19  SetIsExpandable(true);
    2020}
    2121
    22 Label::~Label()
    23 {
     22Label::~Label() {}
    2423
     24void Label::XmlEvent(QDomElement dom) {
     25  label->setText(dom.attribute("value"));
    2526}
    26 
    27 void Label::XmlEvent(QDomElement dom)
    28 {
    29     label->setText(dom.attribute("value"));
    30 }
Note: See TracChangeset for help on using the changeset viewer.