diff options
author | David Schulz <david.schulz@digia.com> | 2012-11-23 11:52:51 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-23 17:04:00 +0100 |
commit | cbf3771e86272c10519394627784d6c1088f3a3b (patch) | |
tree | f526458bba0f2c5fe8ae1c05b678d9966a4eaf77 /examples/widgets/painting/painterpaths/renderarea.cpp | |
parent | 92724e533d13f56d359122d7d83ddc2316a75ef8 (diff) |
QtBase: examples/widgets/painting code style
Change-Id: I3d3c6f3bae20ac8383279437f8f89c92195a704f
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/widgets/painting/painterpaths/renderarea.cpp')
-rw-r--r-- | examples/widgets/painting/painterpaths/renderarea.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/widgets/painting/painterpaths/renderarea.cpp b/examples/widgets/painting/painterpaths/renderarea.cpp index ad22f27fe1..e57dd6dafe 100644 --- a/examples/widgets/painting/painterpaths/renderarea.cpp +++ b/examples/widgets/painting/painterpaths/renderarea.cpp @@ -38,10 +38,10 @@ ** ****************************************************************************/ -#include <QtWidgets> - #include "renderarea.h" +#include <QPainter> + //! [0] RenderArea::RenderArea(const QPainterPath &path, QWidget *parent) : QWidget(parent), path(path) @@ -119,8 +119,7 @@ void RenderArea::paintEvent(QPaintEvent *) painter.translate(-50.0, -50.0); //! [9] //! [10] - painter.setPen(QPen(penColor, penWidth, Qt::SolidLine, Qt::RoundCap, - Qt::RoundJoin)); + painter.setPen(QPen(penColor, penWidth, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin)); QLinearGradient gradient(0, 0, 0, 100); gradient.setColorAt(0.0, fillColor1); gradient.setColorAt(1.0, fillColor2); |