summaryrefslogtreecommitdiff
path: root/plugingui/tests
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/tests
parent4739f0bed6e6332fcf2c6ed2b04c4ae161c41060 (diff)
Fix a lot of style issues in the code for the new GUI.
Diffstat (limited to 'plugingui/tests')
-rw-r--r--plugingui/tests/framewidgettest.cc32
1 files changed, 13 insertions, 19 deletions
diff --git a/plugingui/tests/framewidgettest.cc b/plugingui/tests/framewidgettest.cc
index 5dff73c..5a22c51 100644
--- a/plugingui/tests/framewidgettest.cc
+++ b/plugingui/tests/framewidgettest.cc
@@ -34,22 +34,20 @@
#endif
#include <unistd.h>
-#include <hugin.hpp>
-#include <window.h>
+#include <button.h>
+#include <checkbox.h>
#include <frame.h>
+#include <hugin.hpp>
#include <label.h>
#include <layout.h>
-#include <button.h>
-#include <checkbox.h>
+#include <window.h>
// TODO: fix segfault on close
-class Widget1
- : public GUI::Widget
+class Widget1 : public GUI::Widget
{
public:
- Widget1(GUI::Widget* parent)
- : GUI::Widget(parent)
+ Widget1(GUI::Widget* parent) : GUI::Widget(parent)
{
layout.setResizeChildren(true);
layout.setHAlignment(GUI::HAlignment::center);
@@ -74,12 +72,10 @@ private:
GUI::Label label3{this};
};
-class Widget2
- : public GUI::Widget
+class Widget2 : public GUI::Widget
{
public:
- Widget2(GUI::Widget* parent)
- : GUI::Widget(parent)
+ Widget2(GUI::Widget* parent) : GUI::Widget(parent)
{
layout.setSpacing(10);
layout.setResizeChildren(true);
@@ -103,16 +99,14 @@ private:
GUI::CheckBox checkbox{this};
};
-class TestWindow
- : public GUI::Window
+class TestWindow : public GUI::Window
{
public:
- TestWindow()
- : GUI::Window(nullptr)
+ TestWindow() : GUI::Window(nullptr)
{
setCaption("FrameWidgetTest Window");
- CONNECT(eventHandler(), closeNotifier,
- this, &TestWindow::closeEventHandler);
+ CONNECT(eventHandler(), closeNotifier, this,
+ &TestWindow::closeEventHandler);
CONNECT(this, sizeChangeNotifier, this, &TestWindow::sizeChanged);
layout.setSpacing(10);
@@ -181,7 +175,7 @@ int main()
TestWindow test_window;
test_window.show();
- test_window.resize(300,300);
+ test_window.resize(300, 300);
while(test_window.processEvents())
{