summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview/qgraphicswidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/graphicsview/qgraphicswidget.h')
-rw-r--r--src/widgets/graphicsview/qgraphicswidget.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/widgets/graphicsview/qgraphicswidget.h b/src/widgets/graphicsview/qgraphicswidget.h
index 5cb97db381..831511d14a 100644
--- a/src/widgets/graphicsview/qgraphicswidget.h
+++ b/src/widgets/graphicsview/qgraphicswidget.h
@@ -46,8 +46,9 @@
#include <QtWidgets/qgraphicsitem.h>
#include <QtGui/qpalette.h>
-QT_BEGIN_NAMESPACE
+QT_REQUIRE_CONFIG(graphicsview);
+QT_BEGIN_NAMESPACE
class QFont;
class QFontMetrics;
@@ -58,8 +59,6 @@ class QGraphicsSceneResizeEvent;
class QStyle;
class QStyleOption;
-#if !defined(QT_NO_GRAPHICSVIEW)
-
class QGraphicsWidgetPrivate;
class Q_WIDGETS_EXPORT QGraphicsWidget : public QGraphicsObject, public QGraphicsLayoutItem
@@ -239,8 +238,6 @@ private:
inline void QGraphicsWidget::setGeometry(qreal ax, qreal ay, qreal aw, qreal ah)
{ setGeometry(QRectF(ax, ay, aw, ah)); }
-#endif
-
QT_END_NAMESPACE
#endif