From 69b622cb3d1810c0887b94e6cb177ca4d7a8b080 Mon Sep 17 00:00:00 2001 From: Nico Vertriest Date: Wed, 5 Aug 2020 11:41:42 +0200 Subject: Doc: Make Qt Gui snippets compilable - textdocument-printing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-81486 Change-Id: If811ac26eebbd6b3f9fd20e2b3fb29d3be24d1cb Reviewed-by: Topi Reiniƶ --- src/gui/doc/snippets/textdocument-printing/mainwindow.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/gui/doc/snippets/textdocument-printing/mainwindow.cpp') diff --git a/src/gui/doc/snippets/textdocument-printing/mainwindow.cpp b/src/gui/doc/snippets/textdocument-printing/mainwindow.cpp index a7bd90a9f16..bccbef178e0 100644 --- a/src/gui/doc/snippets/textdocument-printing/mainwindow.cpp +++ b/src/gui/doc/snippets/textdocument-printing/mainwindow.cpp @@ -47,11 +47,15 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ - -#include - #include "mainwindow.h" +#include +#include +#include +#include +#include +#include + MainWindow::MainWindow() { QMenu *fileMenu = new QMenu(tr("&File")); -- cgit v1.2.3