Don't delete Qt objects if they are parented
This branch updates qtModelView to explicitly delete the dock widget only when it is undocked and, therefore, has no parent. Otherwise the parent Qt object deletes it. This extra/explicit delete is causing a seg fault when closing ModelBuilder on my linux build (gcc 4.8).