diff --git a/examples/widgets/graphicsview/chip/view.cpp b/examples/widgets/graphicsview/chip/view.cpp index 7a26227628..62aa25b575 100644 --- a/examples/widgets/graphicsview/chip/view.cpp +++ b/examples/widgets/graphicsview/chip/view.cpp @@ -50,10 +50,8 @@ #include "view.h" -#ifndef QT_NO_PRINTER #include #include -#endif #ifndef QT_NO_OPENGL #include #else diff --git a/examples/widgets/painting/fontsampler/mainwindow.cpp b/examples/widgets/painting/fontsampler/mainwindow.cpp index 33d560edf3..06ffac3728 100644 --- a/examples/widgets/painting/fontsampler/mainwindow.cpp +++ b/examples/widgets/painting/fontsampler/mainwindow.cpp @@ -49,11 +49,7 @@ ****************************************************************************/ #include -#ifndef QT_NO_PRINTER -#include -#include #include -#endif #include "mainwindow.h" diff --git a/examples/widgets/painting/fontsampler/mainwindow.h b/examples/widgets/painting/fontsampler/mainwindow.h index f39e1b1916..ada0d47354 100644 --- a/examples/widgets/painting/fontsampler/mainwindow.h +++ b/examples/widgets/painting/fontsampler/mainwindow.h @@ -52,6 +52,8 @@ #define MAINWINDOW_H #include "ui_mainwindowbase.h" +#include +#include QT_BEGIN_NAMESPACE class QPrinter;