Port to QGIS 2.0.