restore selection in addition to expanded state
Restore position of table
Remove QPaintDevice no metrics warning
Correct usage of QGLWidget

paintGL method did not need begin and end paint methods