QmlDesigner: Move states functions from QmlModelView to StatesEditorView

Change-Id: I1ac99fbf805b21823e062749bd3342be1641072a
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>