source: flair-src/branches/sanscv/tools/FlairGCS/src/GridLayout.cpp@ 379

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

removing opencv dependency

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.