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

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

lic

File size: 546 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): Layout(parent,name,"GridLayout")
10{
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
21
22GridLayout::~GridLayout()
23{
24 widget->setParent(NULL);
25}
Note: See TracBrowser for help on using the repository browser.