backend_qt4agg: remove redundant classes.  Closes #1151.