(still unsuccesful) port from qdeclarative to qquick