summaryrefslogtreecommitdiff
path: root/plugingui/maintab.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-17 11:52:23 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-17 11:52:41 +0200
commitd2020f92fa5a79a5528f9f669d302f09017b7f4c (patch)
tree3724c726f6f04a3adc244700645b3ed40fa78284 /plugingui/maintab.cc
parent9a535d0c854da37de9c2fd2a0aa27c5507ce7d90 (diff)
Resize the frames to improve the looks.
Diffstat (limited to 'plugingui/maintab.cc')
-rw-r--r--plugingui/maintab.cc15
1 files changed, 11 insertions, 4 deletions
diff --git a/plugingui/maintab.cc b/plugingui/maintab.cc
index fbb2e02..a9ae9f2 100644
--- a/plugingui/maintab.cc
+++ b/plugingui/maintab.cc
@@ -38,10 +38,17 @@ MainTab::MainTab(Widget* parent) : Widget(parent)
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});
+
+ auto h1 = 60;
+ auto h2 = 40;
+ auto drumkit_range = GridLayout::GridRange{0, 1, 0, h1};
+ auto status_range = GridLayout::GridRange{0, 1, h1, h1 + 55};
+ auto humanizer_range = GridLayout::GridRange{1, 2, 0, h2};
+ auto diskstreaming_range = GridLayout::GridRange{1, 2, h2, h2 + 35};
+ layout.setPosition(&drumkit_frame, drumkit_range);
+ layout.setPosition(&status_frame, status_range);
+ layout.setPosition(&humanizer_frame, humanizer_range);
+ layout.setPosition(&diskstreaming_frame, diskstreaming_range);
drumkit_frame.setTitle("Drumkit");
status_frame.setTitle("Status");