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

    r10 r15  
    77#include <QGridLayout>
    88
    9 GroupBox::GroupBox(Layout* parent,int row, int col,QString name): Layout(parent,name,"GroupBox")
    10 {
    11     //creation et ajout QGroupBox
    12     box = new QGroupBox(name);
    13     box->setObjectName(name);
     9GroupBox::GroupBox(Layout *parent, int row, int col, QString name)
     10    : Layout(parent, name, "GroupBox") {
     11  // creation et ajout QGroupBox
     12  box = new QGroupBox(name);
     13  box->setObjectName(name);
    1414
    15     visible_widget=box;
     15  visible_widget = box;
    1616
    17     parent->addWidget(box,row,col);
    18     //parent->splitter->addWidget(box);
     17  parent->addWidget(box, row, col);
     18  // parent->splitter->addWidget(box);
    1919
    20     box->setLayout(getQGridLayout());
     20  box->setLayout(getQGridLayout());
    2121}
    2222
     23GroupBox::~GroupBox() {
     24  // layout->removeItem(this);//ne semble pas necessaire
    2325
    24 GroupBox::~GroupBox()
    25 {
    26     //layout->removeItem(this);//ne semble pas necessaire
    27 
    28     box->setParent(NULL);//sinon le delete layout detruit aussi this
    29     //delete layout;
    30     //delete box;
     26  box->setParent(NULL); // sinon le delete layout detruit aussi this
     27  // delete layout;
     28  // delete box;
    3129}
Note: See TracChangeset for help on using the changeset viewer.