summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2009-10-09 11:22:24 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2009-10-29 17:00:09 +0100
commit86e3be13d870e8dce1e06f7cd0adeb8996fade7d (patch)
tree7735f5030300a179762650dbf5402b78d722e74f
parenta7a70ad81a9a1f3cba5fca66c232e7d8560a2850 (diff)
downloadqt4-tools-86e3be13d870e8dce1e06f7cd0adeb8996fade7d.tar.gz
Fix dependencies to QT_NO_PRINTPREVIEWWIDGET
Reviewed-by: Trust Me
-rw-r--r--src/corelib/global/qfeatures.h2
-rw-r--r--src/corelib/global/qfeatures.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/global/qfeatures.h b/src/corelib/global/qfeatures.h
index 36c2cf936c..ab81290de1 100644
--- a/src/corelib/global/qfeatures.h
+++ b/src/corelib/global/qfeatures.h
@@ -767,7 +767,7 @@
#endif
// QPrintPreviewWidget
-#if !defined(QT_NO_PRINTPREVIEWWIDGET) && (defined(QT_NO_GRAPHICSVIEW) || defined(QT_NO_PRINTER))
+#if !defined(QT_NO_PRINTPREVIEWWIDGET) && (defined(QT_NO_GRAPHICSVIEW) || defined(QT_NO_PRINTER) || defined(QT_NO_TOOLBAR) || defined(QT_NO_MAINWINDOW))
#define QT_NO_PRINTPREVIEWWIDGET
#endif
diff --git a/src/corelib/global/qfeatures.txt b/src/corelib/global/qfeatures.txt
index ec478836f6..a0928fcd44 100644
--- a/src/corelib/global/qfeatures.txt
+++ b/src/corelib/global/qfeatures.txt
@@ -567,7 +567,7 @@ Feature: PRINTPREVIEWWIDGET
Description: Provides a widget for previewing page layouts for printer output.
a date.
Section: Widgets
-Requires: GRAPHICSVIEW PRINTER
+Requires: GRAPHICSVIEW PRINTER TOOLBAR MAINWINDOW
Name: QPrintPreviewWidget
SeeAlso: ???