summaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/chip/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/graphicsview/chip/mainwindow.h')
-rw-r--r--examples/widgets/graphicsview/chip/mainwindow.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/examples/widgets/graphicsview/chip/mainwindow.h b/examples/widgets/graphicsview/chip/mainwindow.h
index 00e006f900..c615b78da1 100644
--- a/examples/widgets/graphicsview/chip/mainwindow.h
+++ b/examples/widgets/graphicsview/chip/mainwindow.h
@@ -42,13 +42,12 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
-#include <QtWidgets/qwidget.h>
+#include <QWidget>
-QT_FORWARD_DECLARE_CLASS(QGraphicsScene)
-QT_FORWARD_DECLARE_CLASS(QGraphicsView)
-QT_FORWARD_DECLARE_CLASS(QLabel)
-QT_FORWARD_DECLARE_CLASS(QSlider)
-QT_FORWARD_DECLARE_CLASS(QSplitter)
+QT_BEGIN_NAMESPACE
+class QGraphicsScene;
+class QSplitter;
+QT_END_NAMESPACE
class MainWindow : public QWidget
{
@@ -65,4 +64,4 @@ private:
QSplitter *h2Splitter;
};
-#endif
+#endif // MAINWINDOW_H