source: flair-src/branches/sanscv/tools/FlairGCS/src/GroupBox.cpp@ 324

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

removing opencv dependency

File size: 734 bytes
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
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);
14
15 visible_widget = box;
16
17 parent->addWidget(box, row, col);
18 // parent->splitter->addWidget(box);
19
20 box->setLayout(getQGridLayout());
21}
22
23GroupBox::~GroupBox() {
24 // layout->removeItem(this);//ne semble pas necessaire
25
26 box->setParent(NULL); // sinon le delete layout detruit aussi this
27 // delete layout;
28 // delete box;
29}
Note: See TracBrowser for help on using the repository browser.