From cbf3771e86272c10519394627784d6c1088f3a3b Mon Sep 17 00:00:00 2001 From: David Schulz Date: Fri, 23 Nov 2012 11:52:51 +0100 Subject: QtBase: examples/widgets/painting code style Change-Id: I3d3c6f3bae20ac8383279437f8f89c92195a704f Reviewed-by: hjk --- examples/widgets/painting/transformations/renderarea.cpp | 5 +++-- examples/widgets/painting/transformations/renderarea.h | 3 +-- examples/widgets/painting/transformations/window.cpp | 8 ++++---- examples/widgets/painting/transformations/window.h | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'examples/widgets/painting/transformations') diff --git a/examples/widgets/painting/transformations/renderarea.cpp b/examples/widgets/painting/transformations/renderarea.cpp index 7a60431d5a..21b0d55a19 100644 --- a/examples/widgets/painting/transformations/renderarea.cpp +++ b/examples/widgets/painting/transformations/renderarea.cpp @@ -38,10 +38,11 @@ ** ****************************************************************************/ -#include - #include "renderarea.h" +#include +#include + //! [0] RenderArea::RenderArea(QWidget *parent) : QWidget(parent) diff --git a/examples/widgets/painting/transformations/renderarea.h b/examples/widgets/painting/transformations/renderarea.h index 61becce995..e163e98ea2 100644 --- a/examples/widgets/painting/transformations/renderarea.h +++ b/examples/widgets/painting/transformations/renderarea.h @@ -41,7 +41,6 @@ #ifndef RENDERAREA_H #define RENDERAREA_H -#include #include #include #include @@ -87,4 +86,4 @@ private: }; //! [2] -#endif +#endif // RENDERAREA_H diff --git a/examples/widgets/painting/transformations/window.cpp b/examples/widgets/painting/transformations/window.cpp index dbbed9fd44..beb9a3e975 100644 --- a/examples/widgets/painting/transformations/window.cpp +++ b/examples/widgets/painting/transformations/window.cpp @@ -38,10 +38,11 @@ ** ****************************************************************************/ -#include - #include "window.h" +#include +#include + //! [0] Window::Window() { @@ -148,8 +149,7 @@ void Window::setupShapes() shapes.append(text); shapes.append(truck); - connect(shapeComboBox, SIGNAL(activated(int)), - this, SLOT(shapeSelected(int))); + connect(shapeComboBox, SIGNAL(activated(int)), this, SLOT(shapeSelected(int))); } //! [7] diff --git a/examples/widgets/painting/transformations/window.h b/examples/widgets/painting/transformations/window.h index 2b288446b8..36edd45b92 100644 --- a/examples/widgets/painting/transformations/window.h +++ b/examples/widgets/painting/transformations/window.h @@ -41,12 +41,12 @@ #ifndef WINDOW_H #define WINDOW_H +#include "renderarea.h" + #include #include #include -#include "renderarea.h" - QT_BEGIN_NAMESPACE class QComboBox; QT_END_NAMESPACE -- cgit v1.2.3