diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-08-26 10:02:43 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-08-26 10:04:29 +0200 |
commit | d1b3cc0d0c426c48f4c5d2c0076764e34dec2ebd (patch) | |
tree | 394c2f675fdd22eff1c7bfaab8145f3f0784be06 /src/gui | |
parent | 5a23825f017ddebea698f6f81a36bd7ff7edadc1 (diff) |
Fix some compiler warnings, shut up QIbusPlatformInputContext.
Change-Id: Idadf40b2bbe53928d8577a099f38a2be0a2d6e16
Reviewed-on: http://codereview.qt.nokia.com/3640
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qplatformclipboard_qpa.cpp | 1 | ||||
-rw-r--r-- | src/gui/painting/qpainter.cpp | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/kernel/qplatformclipboard_qpa.cpp b/src/gui/kernel/qplatformclipboard_qpa.cpp index 454ee56bfa..66693409d1 100644 --- a/src/gui/kernel/qplatformclipboard_qpa.cpp +++ b/src/gui/kernel/qplatformclipboard_qpa.cpp @@ -104,6 +104,7 @@ bool QPlatformClipboard::supportsMode(QClipboard::Mode mode) const bool QPlatformClipboard::ownsMode(QClipboard::Mode mode) const { + Q_UNUSED(mode); return false; } diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index e45d773169..75e7f8e79a 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -7420,8 +7420,9 @@ void QPainter::setRedirected(const QPaintDevice *device, const QPoint &offset) { Q_ASSERT(device != 0); - - qWarning() << "QPainter::setRedirected(): ignoring call to deprecated function, use QWidget::render() instead"; + Q_UNUSED(replacement) + Q_UNUSED(offset) + qWarning("QPainter::setRedirected(): ignoring call to deprecated function, use QWidget::render() instead"); } /*! @@ -7443,7 +7444,8 @@ void QPainter::setRedirected(const QPaintDevice *device, */ void QPainter::restoreRedirected(const QPaintDevice *device) { - qWarning() << "QPainter::restoreRedirected(): ignoring call to deprecated function, use QWidget::render() instead"; + Q_UNUSED(device) + qWarning("QPainter::restoreRedirected(): ignoring call to deprecated function, use QWidget::render() instead"); } /*! @@ -7465,6 +7467,8 @@ void QPainter::restoreRedirected(const QPaintDevice *device) */ QPaintDevice *QPainter::redirected(const QPaintDevice *device, QPoint *offset) { + Q_UNUSED(device) + Q_UNUSED(offset) return 0; } |