Changeset 15 in flair-src for trunk/tools/FlairGCS/src/TextEdit.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/TextEdit.cpp

    r10 r15  
    99#include <QTextEdit>
    1010
    11 TextEdit::TextEdit(Layout* parent,int row, int col,QString name):XmlWidget(name,"TextEdit",parent)
    12 {
     11TextEdit::TextEdit(Layout *parent, int row, int col, QString name)
     12    : XmlWidget(name, "TextEdit", parent) {
    1313
    14     visible_widget = new QWidget();
    15     visible_widget->setObjectName(name);
     14  visible_widget = new QWidget();
     15  visible_widget->setObjectName(name);
    1616
    17     layout = new QGridLayout(visible_widget);
    18     clear= new QPushButton("Effacer");
    19     text=new QTextEdit();
     17  layout = new QGridLayout(visible_widget);
     18  clear = new QPushButton("Effacer");
     19  text = new QTextEdit();
    2020
    21     layout->addWidget(text,0,0);
    22     layout->addWidget(clear,1,0);
     21  layout->addWidget(text, 0, 0);
     22  layout->addWidget(clear, 1, 0);
    2323
    24     connect(clear, SIGNAL(clicked(bool)),text, SLOT(clear()));
     24  connect(clear, SIGNAL(clicked(bool)), text, SLOT(clear()));
    2525
    26     parent->addWidget(visible_widget,row,col);
     26  parent->addWidget(visible_widget, row, col);
    2727}
    2828
    29 TextEdit::~TextEdit()
    30 {
     29TextEdit::~TextEdit() {}
    3130
     31void TextEdit::XmlEvent(QDomElement dom) {
     32  text->append(dom.attribute("value"));
    3233}
    33 
    34 void TextEdit::XmlEvent(QDomElement dom)
    35 {
    36     text->append(dom.attribute("value"));
    37 }
Note: See TracChangeset for help on using the changeset viewer.