Line | |
---|
1 | // %flair:license{
|
---|
2 | // This file is part of the Flair framework distributed under the
|
---|
3 | // CECILL-C License, Version 1.0.
|
---|
4 | // %flair:license}
|
---|
5 | #include "GroupBox.h"
|
---|
6 | #include <QGroupBox>
|
---|
7 | #include <QGridLayout>
|
---|
8 |
|
---|
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);
|
---|
14 |
|
---|
15 | visible_widget=box;
|
---|
16 |
|
---|
17 | parent->addWidget(box,row,col);
|
---|
18 | //parent->splitter->addWidget(box);
|
---|
19 |
|
---|
20 | box->setLayout(getQGridLayout());
|
---|
21 | }
|
---|
22 |
|
---|
23 |
|
---|
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;
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.