You should no longer use editor->setScaleFactor(), but use Desktop::setGlobalScaleFactor() now.
editor->setScaleFactor()
Desktop::setGlobalScaleFactor()
more information here: