diff options
author | Romain Pokrzywka <romain.pokrzywka@kdab.com> | 2012-01-15 23:53:01 -0600 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-10 21:39:21 +0200 |
commit | 40760383969022be5488bb180dc7e1f8babcc0eb (patch) | |
tree | 17bab02774ff6948d87231ddff076aca0d8c5eb5 /src/plugins/platforms/fb_base | |
parent | ae3ba4e5c592e92718d81bd51305a0410fc2bd2f (diff) |
Fix compilation when QT_NO_CURSOR is defined
Change-Id: Iacf8ef2032d5c229a7483d6993120684ee9bb04e
Reviewed-by: Jeremy Katz <jeremy.katz@nokia.com>
Diffstat (limited to 'src/plugins/platforms/fb_base')
-rw-r--r-- | src/plugins/platforms/fb_base/fb_base.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/fb_base/fb_base.cpp b/src/plugins/platforms/fb_base/fb_base.cpp index 389dfe5b97..5f71d36841 100644 --- a/src/plugins/platforms/fb_base/fb_base.cpp +++ b/src/plugins/platforms/fb_base/fb_base.cpp @@ -119,6 +119,10 @@ void QPlatformSoftwareCursor::setCursor(const uchar *data, const uchar *mask, in void QPlatformSoftwareCursor::changeCursor(QCursor * widgetCursor, QWidget * widget) { +#ifdef QT_NO_CURSOR + Q_UNUSED(widgetCursor); + Q_UNUSED(widget); +#else Q_UNUSED(widget); Qt::CursorShape shape = widgetCursor->shape(); @@ -134,6 +138,7 @@ void QPlatformSoftwareCursor::changeCursor(QCursor * widgetCursor, QWidget * wid QPoint screenOffset = screen->geometry().topLeft(); // global to local translation if (onScreen || screen->geometry().intersects(currentRect.translated(screenOffset))) setDirty(); +#endif } QFbScreen::QFbScreen() : cursor(0), mGeometry(), mDepth(16), mFormat(QImage::Format_RGB16), mScreenImage(0), compositePainter(0), isUpToDate(false) |