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

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

sources reformatted with flair-format-dir script

File size: 542 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 "GridLayout.h"
6#include <QWidget>
7#include <QGridLayout>
8
9GridLayout::GridLayout(Layout *parent, int row, int col, QString name)
10    : Layout(parent, name, "GridLayout") {
11  widget = new QWidget();
12  widget->setObjectName(name);
13
14  visible_widget = widget;
15
16  parent->addWidget(widget, row, col);
17
18  widget->setLayout(getQGridLayout());
19}
20
21GridLayout::~GridLayout() { widget->setParent(NULL); }
Note: See TracBrowser for help on using the repository browser.