diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-04-07 00:17:17 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-04-07 21:48:01 +0200 |
commit | 43c338928a98f6a765e95011d3808c26cc6597ce (patch) | |
tree | 5a51677d6463f6cc8fa322ec2cb7eab2c553530b /plugingui/maintab.cc | |
parent | 42d7b7245566fd6e598f7031638370808abc13af (diff) |
Implement GridLayout
Diffstat (limited to 'plugingui/maintab.cc')
-rw-r--r-- | plugingui/maintab.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugingui/maintab.cc b/plugingui/maintab.cc index f450bc0..498660e 100644 --- a/plugingui/maintab.cc +++ b/plugingui/maintab.cc @@ -33,12 +33,15 @@ MainTab::MainTab(Widget* parent) : Widget(parent) { layout.setSpacing(10); layout.setResizeChildren(true); - layout.setHAlignment(GUI::HAlignment::center); layout.addItem(&drumkit_frame); layout.addItem(&status_frame); layout.addItem(&humanizer_frame); layout.addItem(&diskstreaming_frame); + layout.setPosition(&drumkit_frame, GridLayout::GridRange{0, 1, 0, 4}); + layout.setPosition(&status_frame, GridLayout::GridRange{0, 1, 4, 7}); + layout.setPosition(&humanizer_frame, GridLayout::GridRange{1, 2, 0, 3}); + layout.setPosition(&diskstreaming_frame, GridLayout::GridRange{1, 2, 3, 5}); drumkit_frame.setTitle("Drumkit"); status_frame.setTitle("Status"); |