diff options
Diffstat (limited to 'examples/widgets/richtext/orderform')
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 |