Qt4: fix use of incomplete type