Restore Wintab support
ClosedPublic

Authored by abrahams on Nov 15 2015, 2:29 AM.

Details

Summary

Basically, merging Qt's qwindowstabletsupport.h into Krita.

I have only tested this with a modified version of Qt. I comment out
the following line in QWindowsContext::QWindowsContext():

// d->m_tabletSupport.reset(QWindowsTabletSupport::create());

this is found at line 347 of qwindowcontext.cpp in my local copy.

The reasoning behind that change is as follows. Qt creates a hidden
dummy window to receive tablet events, and I copy that methodology.
I do not want to worry about conflicting tablet contexts, so I
disabled Qt's extra window, leaving only our own.

I've left much of the older code in place, in particular the part which would be necessary to restore the Surface Pro 3 workaround.

Diff Detail

Repository
R37 Krita
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
abrahams updated this revision to Diff 1289.Nov 15 2015, 2:29 AM
abrahams retitled this revision from to Restore Wintab support.
abrahams updated this object.
abrahams edited the test plan for this revision. (Show Details)
abrahams added reviewers: dkazakov, rempt.
abrahams updated this object.Nov 15 2015, 2:34 AM
abrahams updated this revision to Diff 1296.Nov 16 2015, 1:00 AM
  • Change tablet filtering method on Windows
abrahams updated this revision to Diff 1298.Nov 16 2015, 3:30 AM
  • Change tablet filtering method on Windows
  • Restore Surface Pro 3 fix
abrahams updated this revision to Diff 1305.Nov 16 2015, 8:19 AM
  • Maybe if I make this complex enough, it will improve
This revision was automatically updated to reflect the committed changes.