source: flair-src/trunk/tools/FlairGCS/src/GroupBox.cpp @ 9

Last change on this file since 9 was 9, checked in by Sanahuja Guillaume, 5 years ago

gcs

File size: 599 bytes
Line 
1#include "GroupBox.h"
2#include <QGroupBox>
3#include <QGridLayout>
4
5GroupBox::GroupBox(Layout* parent,int row, int col,QString name): Layout(parent,name,"GroupBox")
6{
7    //creation et ajout QGroupBox
8    box = new QGroupBox(name);
9    box->setObjectName(name);
10
11    visible_widget=box;
12
13    parent->addWidget(box,row,col);
14    //parent->splitter->addWidget(box);
15
16    box->setLayout(getQGridLayout());
17}
18
19
20GroupBox::~GroupBox()
21{
22    //layout->removeItem(this);//ne semble pas necessaire
23
24    box->setParent(NULL);//sinon le delete layout detruit aussi this
25    //delete layout;
26    //delete box;
27}
Note: See TracBrowser for help on using the repository browser.