Line | |
---|
1 | #include "GroupBox.h"
|
---|
2 | #include <QGroupBox>
|
---|
3 | #include <QGridLayout>
|
---|
4 |
|
---|
5 | GroupBox::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 |
|
---|
20 | GroupBox::~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.