Fix Qt 5 compatibility
Fix double click

See #11
Fix triple click on Qt 5

This and previous commit fix #11