use a QMap to get DrawMode from a String.