Porting to QGIS 4.0