summaryrefslogtreecommitdiff
path: root/plugingui/drumkitframecontent.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-01 19:01:25 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-01 19:01:25 +0200
commit1f41de14a04240dfd993b030306ac251d962a843 (patch)
tree08d5ef8b74793909a15cb8f3c0b7732819a41f8a /plugingui/drumkitframecontent.h
parent4739f0bed6e6332fcf2c6ed2b04c4ae161c41060 (diff)
Fix a lot of style issues in the code for the new GUI.
Diffstat (limited to 'plugingui/drumkitframecontent.h')
-rw-r--r--plugingui/drumkitframecontent.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/plugingui/drumkitframecontent.h b/plugingui/drumkitframecontent.h
index b5b929c..9533bd2 100644
--- a/plugingui/drumkitframecontent.h
+++ b/plugingui/drumkitframecontent.h
@@ -26,22 +26,20 @@
*/
#pragma once
-#include "widget.h"
-#include "lineedit.h"
-#include "progressbar.h"
#include "button.h"
#include "label.h"
+#include "lineedit.h"
+#include "progressbar.h"
+#include "widget.h"
namespace GUI
{
// TODO: move to own class?
-class File
- : public Widget
+class File : public Widget
{
public:
- File(Widget* parent)
- : Widget(parent)
+ File(Widget* parent) : Widget(parent)
{
layout.setResizeChildren(false);
layout.setVAlignment(VAlignment::center);
@@ -66,8 +64,14 @@ public:
layout.layout();
}
- std::size_t getLineEditWidth() { return lineedit_width; }
- std::size_t getButtonWidth() { return button_width; }
+ std::size_t getLineEditWidth()
+ {
+ return lineedit_width;
+ }
+ std::size_t getButtonWidth()
+ {
+ return button_width;
+ }
private:
HBoxLayout layout{this};
@@ -78,7 +82,10 @@ private:
std::size_t lineedit_width;
std::size_t button_width;
- LineEdit& getLineEdit() { return lineedit; }
+ LineEdit& getLineEdit()
+ {
+ return lineedit;
+ }
};
class DrumkitframeContent : public Widget