summaryrefslogtreecommitdiffstats
path: root/examples/widgets/painting/transformations
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@digia.com>2012-11-23 11:52:51 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-23 17:04:00 +0100
commitcbf3771e86272c10519394627784d6c1088f3a3b (patch)
treef526458bba0f2c5fe8ae1c05b678d9966a4eaf77 /examples/widgets/painting/transformations
parent92724e533d13f56d359122d7d83ddc2316a75ef8 (diff)
QtBase: examples/widgets/painting code style
Change-Id: I3d3c6f3bae20ac8383279437f8f89c92195a704f Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/widgets/painting/transformations')
-rw-r--r--examples/widgets/painting/transformations/renderarea.cpp5
-rw-r--r--examples/widgets/painting/transformations/renderarea.h3
-rw-r--r--examples/widgets/painting/transformations/window.cpp8
-rw-r--r--examples/widgets/painting/transformations/window.h4
4 files changed, 10 insertions, 10 deletions
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 <QtWidgets>
-
#include "renderarea.h"
+#include <QPainter>
+#include <QPaintEvent>
+
//! [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 <QFont>
#include <QList>
#include <QPainterPath>
#include <QRect>
@@ -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 <QtWidgets>
-
#include "window.h"
+#include <QComboBox>
+#include <QGridLayout>
+
//! [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 <QList>
#include <QPainterPath>
#include <QWidget>
-#include "renderarea.h"
-
QT_BEGIN_NAMESPACE
class QComboBox;
QT_END_NAMESPACE