Rev | Line | |
---|
[10] | 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}
|
---|
[9] | 5 | #include "GridLayout.h"
|
---|
| 6 | #include <QWidget>
|
---|
| 7 | #include <QGridLayout>
|
---|
| 8 |
|
---|
| 9 | GridLayout::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 |
|
---|
| 22 | GridLayout::~GridLayout()
|
---|
| 23 | {
|
---|
| 24 | widget->setParent(NULL);
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.