Remove test for invalid case; clang rightfully warns.
Use fwd decls where possible; works around qt3 mess with Qt 4.8.6.