-made resizing and undocking much simpler
-also fixed the top line being cut off
-eliminated unneeded QWidget