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

Last change on this file since 15 was 15, checked in by Bayard Gildas, 8 years ago

sources reformatted with flair-format-dir script

File size: 734 bytes
RevLine 
[10]1// %flair:license{
[15]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[10]4// %flair:license}
[9]5#include "GroupBox.h"
6#include <QGroupBox>
7#include <QGridLayout>
8
[15]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);
[9]14
[15]15 visible_widget = box;
[9]16
[15]17 parent->addWidget(box, row, col);
18 // parent->splitter->addWidget(box);
[9]19
[15]20 box->setLayout(getQGridLayout());
[9]21}
22
[15]23GroupBox::~GroupBox() {
24 // layout->removeItem(this);//ne semble pas necessaire
[9]25
[15]26 box->setParent(NULL); // sinon le delete layout detruit aussi this
27 // delete layout;
28 // delete box;
[9]29}
Note: See TracBrowser for help on using the repository browser.