summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/image/qpicture/tst_qpicture.cpp
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-06-05 13:34:17 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-07 00:38:38 +0200
commitc6d3942ea7ff7bbf4aee757d59dcac63b7a769fc (patch)
treec107433ff5bf13eff6bceb9d659824c4d9488faa /tests/auto/gui/image/qpicture/tst_qpicture.cpp
parent17e233e7c3bbd13f455f9299d1b714da436d0806 (diff)
Make qpicture autotest build without widgets
Change-Id: Id2047dace7b3087f1c7b83545f5e122ab936d33c Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'tests/auto/gui/image/qpicture/tst_qpicture.cpp')
-rw-r--r--tests/auto/gui/image/qpicture/tst_qpicture.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/gui/image/qpicture/tst_qpicture.cpp b/tests/auto/gui/image/qpicture/tst_qpicture.cpp
index 8c2db9bed7..bd377d981e 100644
--- a/tests/auto/gui/image/qpicture/tst_qpicture.cpp
+++ b/tests/auto/gui/image/qpicture/tst_qpicture.cpp
@@ -45,8 +45,10 @@
#include <qpicture.h>
#include <qpainter.h>
#include <qimage.h>
+#ifndef QT_NO_WIDGETS
#include <qdesktopwidget.h>
#include <qapplication.h>
+#endif
#include <limits.h>
class tst_QPicture : public QObject
@@ -64,7 +66,9 @@ private slots:
void swap();
void operator_lt_lt();
+#ifndef QT_NO_WIDGETS
void save_restore();
+#endif
void boundaryValues_data();
void boundaryValues();
@@ -195,6 +199,7 @@ void tst_QPicture::operator_lt_lt()
}
}
+#ifndef QT_NO_WIDGETS
static QPointF scalePoint(const QPointF &point, QPaintDevice *sourceDevice, QPaintDevice *destDevice)
{
return QPointF(point.x() * qreal(destDevice->logicalDpiX()) / qreal(sourceDevice->logicalDpiX()),
@@ -247,6 +252,7 @@ void tst_QPicture::save_restore()
QVERIFY( pix1.toImage() == pix2.toImage() );
}
+#endif
void tst_QPicture::boundaryValues_data()
{