Support QGIS API version 2.2.0