Reformatted code to abide by mantid styleguide. Refs #3464
Apply and cancel button now function as expected. Refs #3464
Removed unused slots. Refs #3464.
Removed duplicate code. Refs #3464."

Accidently forgot to remove code when refactoring.
Merge branch 'feature/3464_fix_cancel_button_when_plotting' into develop