Updated code to better reflect "PySide and Qt Quick/QML Playground" tutorial example.