summaryrefslogtreecommitdiffstats
path: root/examples/widgets/richtext/orderform
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@digia.com>2012-11-23 13:36:40 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-24 23:07:54 +0100
commitd5ec06be6397b807b743aa46707ff45aa9dccafa (patch)
treeff53ede51fa0e3d90cb0619d7297be5e49025810 /examples/widgets/richtext/orderform
parentcf1e315e285b9a645231538bcbacf9e541c970c3 (diff)
QtBase: examples/widgets/richtext code style
Change-Id: Ie0c27464e0fdb8f26caf0d8f27043da4ec45f41f Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/widgets/richtext/orderform')
-rw-r--r--examples/widgets/richtext/orderform/detailsdialog.h3
-rw-r--r--examples/widgets/richtext/orderform/main.cpp2
-rw-r--r--examples/widgets/richtext/orderform/mainwindow.cpp3
-rw-r--r--examples/widgets/richtext/orderform/mainwindow.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/examples/widgets/richtext/orderform/detailsdialog.h b/examples/widgets/richtext/orderform/detailsdialog.h
index ccef66785e..567e79d9ad 100644
--- a/examples/widgets/richtext/orderform/detailsdialog.h
+++ b/examples/widgets/richtext/orderform/detailsdialog.h
@@ -44,7 +44,6 @@
#include <QDialog>
#include <QList>
#include <QPair>
-#include <QString>
QT_BEGIN_NAMESPACE
class QCheckBox;
@@ -87,4 +86,4 @@ private:
};
//! [0]
-#endif
+#endif // DETAILSDIALOG_H
diff --git a/examples/widgets/richtext/orderform/main.cpp b/examples/widgets/richtext/orderform/main.cpp
index c97453b89a..911128336e 100644
--- a/examples/widgets/richtext/orderform/main.cpp
+++ b/examples/widgets/richtext/orderform/main.cpp
@@ -38,7 +38,7 @@
**
****************************************************************************/
-#include <QtWidgets>
+#include <QApplication>
#include "mainwindow.h"
diff --git a/examples/widgets/richtext/orderform/mainwindow.cpp b/examples/widgets/richtext/orderform/mainwindow.cpp
index 8cd16abb20..4334e8bb71 100644
--- a/examples/widgets/richtext/orderform/mainwindow.cpp
+++ b/examples/widgets/richtext/orderform/mainwindow.cpp
@@ -225,9 +225,10 @@ void MainWindow::openDialog()
{
DetailsDialog dialog(tr("Enter Customer Details"), this);
- if (dialog.exec() == QDialog::Accepted)
+ if (dialog.exec() == QDialog::Accepted) {
createLetter(dialog.senderName(), dialog.senderAddress(),
dialog.orderItems(), dialog.sendOffers());
+ }
}
//! [16]
diff --git a/examples/widgets/richtext/orderform/mainwindow.h b/examples/widgets/richtext/orderform/mainwindow.h
index bd93b90475..37bd5dc09b 100644
--- a/examples/widgets/richtext/orderform/mainwindow.h
+++ b/examples/widgets/richtext/orderform/mainwindow.h
@@ -73,4 +73,4 @@ private:
};
//! [0]
-#endif
+#endif // MAINWINDOW_H