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

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

gcs

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