diff options
Diffstat (limited to 'examples/touch')
-rw-r--r-- | examples/touch/fingerpaint/scribblearea.cpp | 2 | ||||
-rw-r--r-- | examples/touch/pinchzoom/mouse.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/touch/fingerpaint/scribblearea.cpp b/examples/touch/fingerpaint/scribblearea.cpp index f672a3fdd1..0d13e4579d 100644 --- a/examples/touch/fingerpaint/scribblearea.cpp +++ b/examples/touch/fingerpaint/scribblearea.cpp @@ -154,7 +154,7 @@ void ScribbleArea::resizeImage(QImage *image, const QSize &newSize) //! [21] void ScribbleArea::print() { -#ifndef QT_NO_PRINTER +#if !defined(QT_NO_PRINTER) && !defined(QT_NO_PRINTDIALOG) QPrinter printer(QPrinter::HighResolution); QPrintDialog printDialog(&printer, this); diff --git a/examples/touch/pinchzoom/mouse.cpp b/examples/touch/pinchzoom/mouse.cpp index 9c5ca86e6a..40e6ccb127 100644 --- a/examples/touch/pinchzoom/mouse.cpp +++ b/examples/touch/pinchzoom/mouse.cpp @@ -158,7 +158,7 @@ void Mouse::timerEvent(QTimerEvent *) foreach (QGraphicsItem *item, dangerMice) { if (item == this) continue; - + QLineF lineToMouse(QPointF(0, 0), mapFromItem(item, 0, 0)); qreal angleToMouse = ::acos(lineToMouse.dx() / lineToMouse.length()); if (lineToMouse.dy() < 0) |