updated to new QgsPalLayerSettings API that is changed in the same 2.0 version