drop module name from includes

The old includes were inconsistent, and this is the style that the
Qt docs use.
WFlags -> WindowFlags
set the target-name
get rid of unused generated file
make sure we have access to the widgets module