Last change
on this file since 93 was 15, checked in by Bayard Gildas, 9 years ago |
sources reformatted with flair-format-dir script
|
File size:
542 bytes
|
Rev | Line | |
---|
[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 "GridLayout.h"
|
---|
| 6 | #include <QWidget>
|
---|
| 7 | #include <QGridLayout>
|
---|
| 8 |
|
---|
[15] | 9 | GridLayout::GridLayout(Layout *parent, int row, int col, QString name)
|
---|
| 10 | : Layout(parent, name, "GridLayout") {
|
---|
| 11 | widget = new QWidget();
|
---|
| 12 | widget->setObjectName(name);
|
---|
[9] | 13 |
|
---|
[15] | 14 | visible_widget = widget;
|
---|
[9] | 15 |
|
---|
[15] | 16 | parent->addWidget(widget, row, col);
|
---|
[9] | 17 |
|
---|
[15] | 18 | widget->setLayout(getQGridLayout());
|
---|
[9] | 19 | }
|
---|
| 20 |
|
---|
[15] | 21 | GridLayout::~GridLayout() { widget->setParent(NULL); }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.