summaryrefslogtreecommitdiffstats
path: root/examples/widgets/painting/imagecomposition/imagecomposer.cpp
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/imagecomposition/imagecomposer.cpp
parent92724e533d13f56d359122d7d83ddc2316a75ef8 (diff)
QtBase: examples/widgets/painting code style
Change-Id: I3d3c6f3bae20ac8383279437f8f89c92195a704f Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/widgets/painting/imagecomposition/imagecomposer.cpp')
-rw-r--r--examples/widgets/painting/imagecomposition/imagecomposer.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/examples/widgets/painting/imagecomposition/imagecomposer.cpp b/examples/widgets/painting/imagecomposition/imagecomposer.cpp
index cc1954d1de..e520cd871a 100644
--- a/examples/widgets/painting/imagecomposition/imagecomposer.cpp
+++ b/examples/widgets/painting/imagecomposition/imagecomposer.cpp
@@ -38,10 +38,10 @@
**
****************************************************************************/
-#include <QtWidgets>
-
#include "imagecomposer.h"
+#include <QtWidgets>
+
//! [0]
static const QSize resultSize(200, 200);
//! [0]
@@ -91,10 +91,8 @@ ImageComposer::ImageComposer()
//! [3]
connect(sourceButton, SIGNAL(clicked()), this, SLOT(chooseSource()));
- connect(operatorComboBox, SIGNAL(activated(int)),
- this, SLOT(recalculateResult()));
- connect(destinationButton, SIGNAL(clicked()),
- this, SLOT(chooseDestination()));
+ connect(operatorComboBox, SIGNAL(activated(int)), this, SLOT(recalculateResult()));
+ connect(destinationButton, SIGNAL(clicked()), this, SLOT(chooseDestination()));
//! [3]
//! [4]
@@ -128,8 +126,7 @@ void ImageComposer::chooseSource()
//! [7]
void ImageComposer::chooseDestination()
{
- chooseImage(tr("Choose Destination Image"), &destinationImage,
- destinationButton);
+ chooseImage(tr("Choose Destination Image"), &destinationImage, destinationButton);
}
//! [7]