diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-09-23 17:08:16 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-09-23 17:14:47 (GMT) |
commit | 0f462990247d71e598346a8f96faf6d04cd4515e (patch) | |
tree | c3abce88f5a2534fe5a1ae4a1aa7e2672dc63a3d /src/gui/kernel/qwidget_s60.cpp | |
parent | 454bedce14728e4f0575aadea6c454717c95d3fe (diff) | |
download | Qt-0f462990247d71e598346a8f96faf6d04cd4515e.zip Qt-0f462990247d71e598346a8f96faf6d04cd4515e.tar.gz Qt-0f462990247d71e598346a8f96faf6d04cd4515e.tar.bz2 |
Compile fix for platforms prior to Symbian^3.
The advanced pointer events are only available on Symbian^3 and higher
so we need to make sure these are protected by an #ifdef. We might have
to re-factor this later into a plugin in order to get this running on
older versions.
Reviewed-by: axis
Diffstat (limited to 'src/gui/kernel/qwidget_s60.cpp')
-rw-r--r-- | src/gui/kernel/qwidget_s60.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp index 2e6139b..6b5e9b7 100644 --- a/src/gui/kernel/qwidget_s60.cpp +++ b/src/gui/kernel/qwidget_s60.cpp @@ -805,11 +805,13 @@ void QWidgetPrivate::setMask_sys(const QRegion& /* region */) void QWidgetPrivate::registerTouchWindow() { +#ifdef QT_SYMBIAN_SUPPORTS_ADVANCED_POINTER Q_Q(QWidget); if (q->testAttribute(Qt::WA_WState_Created) && q->windowType() != Qt::Desktop) { RWindow *rwindow = static_cast<RWindow *>(q->effectiveWinId()->DrawableWindow()); rwindow->EnableAdvancedPointers(); } +#endif } int QWidget::metric(PaintDeviceMetric m) const |