summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSérgio Martins <[email protected]>2014-02-08 00:11:56 +0000
committerThe Qt Project <[email protected]>2014-02-11 20:59:15 +0100
commit63cf8ad33a4671aee35ac995bd34e83b1d863ac4 (patch)
treeb506c4c3ecab89be86601309c3e72889e7858157
parent34dba9261ec0446312a28056af90c0b32944ec9d (diff)
Fix build with QT_NO_GRAPHICSVIEW
-rw-r--r--src/widgets/graphicsview/qgraphicsgridlayoutengine.cpp5
-rw-r--r--src/widgets/graphicsview/qgraphicsgridlayoutengine_p.h4
-rw-r--r--src/widgets/graphicsview/qgraphicslayoutstyleinfo.cpp6
3 files changed, 15 insertions, 0 deletions
diff --git a/src/widgets/graphicsview/qgraphicsgridlayoutengine.cpp b/src/widgets/graphicsview/qgraphicsgridlayoutengine.cpp
index 6de41c308bc..605411bd6d7 100644
--- a/src/widgets/graphicsview/qgraphicsgridlayoutengine.cpp
+++ b/src/widgets/graphicsview/qgraphicsgridlayoutengine.cpp
@@ -40,6 +40,9 @@
****************************************************************************/
#include "qgraphicsgridlayoutengine_p.h"
+
+#ifndef QT_NO_GRAPHICSVIEW
+
#include "qgraphicslayoutitem_p.h"
#include "qgraphicslayout_p.h"
#include "qgraphicswidget.h"
@@ -99,3 +102,5 @@ int QGraphicsGridLayoutEngine::stretchFactor(QGraphicsLayoutItem *layoutItem, Qt
QT_END_NAMESPACE
+
+#endif // QT_NO_GRAPHICSVIEW
diff --git a/src/widgets/graphicsview/qgraphicsgridlayoutengine_p.h b/src/widgets/graphicsview/qgraphicsgridlayoutengine_p.h
index 1e987e30d2b..1338114d964 100644
--- a/src/widgets/graphicsview/qgraphicsgridlayoutengine_p.h
+++ b/src/widgets/graphicsview/qgraphicsgridlayoutengine_p.h
@@ -44,6 +44,8 @@
#include <QtGui/private/qgridlayoutengine_p.h>
+#ifndef QT_NO_GRAPHICSVIEW
+
#include <QtWidgets/qsizepolicy.h>
#include <QtWidgets/qstyle.h>
#include <QtWidgets/qstyleoption.h>
@@ -122,4 +124,6 @@ public:
QT_END_NAMESPACE
+#endif // QT_NO_GRAPHICSVIEW
+
#endif // QGRAPHICSGRIDLAYOUTENGINE_P_H
diff --git a/src/widgets/graphicsview/qgraphicslayoutstyleinfo.cpp b/src/widgets/graphicsview/qgraphicslayoutstyleinfo.cpp
index 3270fc20a37..d60fd6059e1 100644
--- a/src/widgets/graphicsview/qgraphicslayoutstyleinfo.cpp
+++ b/src/widgets/graphicsview/qgraphicslayoutstyleinfo.cpp
@@ -38,7 +38,11 @@
** $QT_END_LICENSE$
**
****************************************************************************/
+
#include "qgraphicslayoutstyleinfo_p.h"
+
+#ifndef QT_NO_GRAPHICSVIEW
+
#include "qgraphicslayout_p.h"
#include "qgraphicswidget.h"
#include <QtWidgets/qstyle.h>
@@ -106,3 +110,5 @@ QStyle *QGraphicsLayoutStyleInfo::style() const
}
QT_END_NAMESPACE
+
+#endif // QT_NO_GRAPHICSVIEW