diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-05-26 10:45:09 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-05-26 10:45:09 (GMT) |
commit | 37fff42b5c52a8e0c36d6834ac494ebabb4ea449 (patch) | |
tree | 285ad1bdee0a4835c8edce58e66c7f7dc4f058a9 /src/gui/kernel/qwidget.cpp | |
parent | b6d42a179c021e7544242edb82d8368af27c4dad (diff) | |
download | Qt-37fff42b5c52a8e0c36d6834ac494ebabb4ea449.zip Qt-37fff42b5c52a8e0c36d6834ac494ebabb4ea449.tar.gz Qt-37fff42b5c52a8e0c36d6834ac494ebabb4ea449.tar.bz2 |
Don't enable WM_TOUCH* messages on all windows
Only do it when a widget has actually set the Qt::WA_AcceptTouchEvents attribute
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index 7b1b38c..486e145 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -9889,6 +9889,12 @@ void QWidget::setAttribute(Qt::WidgetAttribute attribute, bool on) } break; +#if defined(Q_WS_WIN) + case Qt::WA_AcceptTouchEvents: + if (on) + d->registerTouchWindow(); + break; +#endif default: break; } |