Replaced this pointer with the Canvas id and changed the import to QtQuick 2.0, to make it work on Qt 5.0.
Merge pull request #1 from zacura/master

Merged #1: Small tweaks to make it compatible with Qt 5.0.