nngn
Loading...
Searching...
No Matches
flow_grid_layout.h
Go to the documentation of this file.
1#ifndef NNGN_TOOLS_AUDIO_FLOW_GRID_LAYOUT_H
2#define NNGN_TOOLS_AUDIO_FLOW_GRID_LAYOUT_H
3
4#include <QGridLayout>
5
6namespace nngn {
7
12class FlowGridLayout final : public QGridLayout {
13public:
14 using QGridLayout::QGridLayout;
15 QSize minimumSize(void) const final;
16 QSize sizeHint(void) const final;
17 void setGeometry(const QRect &rect) final;
18private:
19 QSize size_for_columns(int c) const;
20 int rows = 0, columns = 0;
21};
22
23}
24
25#endif
Resizable QGridLayout composed of uniform, fixed-size widgets.
Definition flow_grid_layout.h:12
int rows
Definition flow_grid_layout.h:20
QSize size_for_columns(int c) const
Definition flow_grid_layout.cpp:39
QSize minimumSize(void) const final
Definition flow_grid_layout.cpp:47
int columns
Definition flow_grid_layout.h:20
QSize sizeHint(void) const final
Definition flow_grid_layout.cpp:51
void setGeometry(const QRect &rect) final
Definition flow_grid_layout.cpp:55
local c
Definition gamma.lua:11
Definition audio.cpp:7
local function rect(left, right, bottom, up)