From 1f41de14a04240dfd993b030306ac251d962a843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sat, 1 Apr 2017 19:01:25 +0200 Subject: Fix a lot of style issues in the code for the new GUI. --- plugingui/drumkitframecontent.h | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'plugingui/drumkitframecontent.h') 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 -- cgit v1.2.3