Update to QGIS 2.0 API compatibility

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>