Ported to QtQuick 2.0.