Also had to put mainwindow into it's own header for this to work. Full conversion of mainwindow will ultimately follow.