summaryrefslogtreecommitdiff
path: root/plugingui/drumkitframecontent.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-20 20:30:03 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-20 20:36:27 +0200
commit769fc2a150f73f9fff48f72ce6f7d9a42ce0e366 (patch)
tree55a9fc2cd80544e224a446a1c88ca0ffcf962855 /plugingui/drumkitframecontent.cc
parent73fc462b95827920e5225f4f655b6640f6affce0 (diff)
Introduce gaps between buttons and content.
This was necessary because of the new button texture.
Diffstat (limited to 'plugingui/drumkitframecontent.cc')
-rw-r--r--plugingui/drumkitframecontent.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugingui/drumkitframecontent.cc b/plugingui/drumkitframecontent.cc
index ea830fa..c16bb5a 100644
--- a/plugingui/drumkitframecontent.cc
+++ b/plugingui/drumkitframecontent.cc
@@ -39,6 +39,7 @@ BrowseFile::BrowseFile(Widget* parent)
{
layout.setResizeChildren(false);
layout.setVAlignment(VAlignment::center);
+ layout.setSpacing(gap);
layout.addItem(&lineedit);
layout.addItem(&browse_button);
@@ -50,8 +51,8 @@ void BrowseFile::resize(std::size_t width, std::size_t height)
{
Widget::resize(width, height);
- lineedit_width = 0.72 * width;
- button_width = width - lineedit_width;
+ lineedit_width = 0.72 * width - gap;
+ button_width = width - lineedit_width - gap;
lineedit.resize(lineedit_width, 29);
browse_button.resize(button_width, 30);