Improve brush rendering

Better looking thin brushes and smoother pressure dependent size changes.
Qt 5.4.0: fix dragging with tablet stylus button

Tablet event behaviour has changed in Qt 5.4. Tablet button events
are now sent using the actual tablet event rather than mouse event.
Right clicking with the tablet now works too!