summaryrefslogtreecommitdiffstats
path: root/examples/widgets/painting/painterpaths/renderarea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/painting/painterpaths/renderarea.cpp')
-rw-r--r--examples/widgets/painting/painterpaths/renderarea.cpp7
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);