-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.4.0 Alpha
-
-
f444b25ac1dfe240b5ae592717907b15d30a5c21
- Add command line parameter for the QPA plugin which can be specified in
qt.conf to define the default flags for windows RegisterTouchWindow(),
e.g. default = TWF_WANTPALM
- If the window is already configured as touch window, the flags should
not be changed anymore by QT
e.g. pseudo code:
void QWidget::setAttribute(Qt::WidgetAttribute attribute, bool on)
{
// ...
case Qt::WA_AcceptTouchEvents:
if (on)
{
if ( ::IsTouchWindow( hWnd, NULL ) )
{
// Touch input already enabled -> keep flags as they are.
}
else
{
// Set default flags (specified e.g. through QPA plugin
command line parameter)
::RegisterTouchWindow( hWnd, kDefaultTouchInputFlags );
}
}
// ...
}