Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
maki::GridGroup Class Reference

A labelled container widget that arranges child widgets and layouts in a grid. More...

#include <widget_factory.h>

Inheritance diagram for maki::GridGroup:

Public Member Functions

 GridGroup (const QString &label, int rows, int cols, QWidget *parent)
 Constructs a grid group with a label and fixed grid dimensions.
void addWidget (QWidget *widget)
 Adds a widget to the next available cell in the grid.
void addLayout (QLayout *layout)
 Adds a layout to the next available cell in the grid.
QWidget * widget () const
 Returns the internal content widget of the group.

Private Attributes

QWidget * mContent
 Internal content widget that owns the grid contents.
const int mRows
 Total number of rows in the grid.
const int mCols
 Total number of columns in the grid.
int mCurrentRow
 Current row where the next item will be inserted.
int mCurrentCol
 Current column where the next item will be inserted.

Detailed Description

A labelled container widget that arranges child widgets and layouts in a grid.

Constructor & Destructor Documentation

◆ GridGroup()

maki::GridGroup::GridGroup ( const QString & label,
int rows,
int cols,
QWidget * parent )

Constructs a grid group with a label and fixed grid dimensions.

Parameters
labelThe visible label for the group.
rowsThe number of rows in the grid.
colsThe number of columns in the grid.
parentThe parent widget.

Member Function Documentation

◆ addLayout()

void maki::GridGroup::addLayout ( QLayout * layout)

Adds a layout to the next available cell in the grid.

Parameters
layoutThe layout to add.

◆ addWidget()

void maki::GridGroup::addWidget ( QWidget * widget)

Adds a widget to the next available cell in the grid.

Parameters
widgetThe widget to add.

◆ widget()

QWidget * maki::GridGroup::widget ( ) const

Returns the internal content widget of the group.

Returns
The content widget.

The documentation for this class was generated from the following files:
  • /__w/maki/maki/app/widgets/widget_factory.h
  • /__w/maki/maki/app/widgets/widget_factory.cpp