summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2014-01-31 13:01:31 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-05 08:51:55 +0100
commit060b853a2f1fc9eb6e91d004ad9162e84dc66fd3 (patch)
tree48e4e6390ce4819ff9bd61fddec6c106e15478bb
parent09e53c8b6ece81efda1c075643cc84320a061f88 (diff)
downloadqtbase-060b853a2f1fc9eb6e91d004ad9162e84dc66fd3.tar.gz
qtbase-060b853a2f1fc9eb6e91d004ad9162e84dc66fd3.tar.bz2
qtbase-060b853a2f1fc9eb6e91d004ad9162e84dc66fd3.zip
Actually print when the tester pushes the print button
Change-Id: I5c995938a74f720be5beb33160488ec1ec73c0ff Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
-rw-r--r--tests/manual/dialogs/printdialogpanel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/manual/dialogs/printdialogpanel.cpp b/tests/manual/dialogs/printdialogpanel.cpp
index 02beaa4bae..d0684f6e35 100644
--- a/tests/manual/dialogs/printdialogpanel.cpp
+++ b/tests/manual/dialogs/printdialogpanel.cpp
@@ -399,8 +399,10 @@ void PrintDialogPanel::showPrintDialog()
QPrintDialog dialog(m_printer.data(), this);
dialog.setOptions(m_printDialogOptionsControl->value<QPrintDialog::PrintDialogOptions>());
dialog.setPrintRange(comboBoxValue<QPrintDialog::PrintRange>(m_printDialogRangeCombo));
- if (dialog.exec() == QDialog::Accepted)
+ if (dialog.exec() == QDialog::Accepted) {
retrieveSettings(m_printer.data());
+ print(m_printer.data());
+ }
}
void PrintDialogPanel::showPreviewDialog()