summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview/qgraphicslayoutitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/graphicsview/qgraphicslayoutitem.h')
-rw-r--r--src/widgets/graphicsview/qgraphicslayoutitem.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/widgets/graphicsview/qgraphicslayoutitem.h b/src/widgets/graphicsview/qgraphicslayoutitem.h
index 02bda0ad8d..10c7870412 100644
--- a/src/widgets/graphicsview/qgraphicslayoutitem.h
+++ b/src/widgets/graphicsview/qgraphicslayoutitem.h
@@ -45,10 +45,9 @@
#include <QtWidgets/qsizepolicy.h>
#include <QtGui/qevent.h>
-QT_BEGIN_NAMESPACE
-
+QT_REQUIRE_CONFIG(graphicsview);
-#if !defined(QT_NO_GRAPHICSVIEW)
+QT_BEGIN_NAMESPACE
class QGraphicsLayoutItemPrivate;
class QGraphicsItem;
@@ -141,8 +140,6 @@ inline qreal QGraphicsLayoutItem::maximumWidth() const
inline qreal QGraphicsLayoutItem::maximumHeight() const
{ return effectiveSizeHint(Qt::MaximumSize).height(); }
-#endif
-
QT_END_NAMESPACE
#endif