summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview/qgraphicsscenebsptreeindex_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/graphicsview/qgraphicsscenebsptreeindex_p.h')
-rw-r--r--src/widgets/graphicsview/qgraphicsscenebsptreeindex_p.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/widgets/graphicsview/qgraphicsscenebsptreeindex_p.h b/src/widgets/graphicsview/qgraphicsscenebsptreeindex_p.h
index b195a4757c..8e78407762 100644
--- a/src/widgets/graphicsview/qgraphicsscenebsptreeindex_p.h
+++ b/src/widgets/graphicsview/qgraphicsscenebsptreeindex_p.h
@@ -53,8 +53,6 @@
#include <QtWidgets/private/qtwidgetsglobal_p.h>
-#if !defined(QT_NO_GRAPHICSVIEW)
-
#include "qgraphicssceneindex_p.h"
#include "qgraphicsitem_p.h"
#include "qgraphicsscene_bsp_p.h"
@@ -62,6 +60,8 @@
#include <QtCore/qrect.h>
#include <QtCore/qlist.h>
+QT_REQUIRE_CONFIG(graphicsview);
+
QT_BEGIN_NAMESPACE
static const int QGRAPHICSSCENE_INDEXTIMER_TIMEOUT = 2000;
@@ -199,6 +199,4 @@ static inline bool QRectF_intersects(const QRectF &s, const QRectF &r)
QT_END_NAMESPACE
-#endif // QT_NO_GRAPHICSVIEW
-
#endif // QGRAPHICSBSPTREEINDEX_H