Mark functions with Q_DECL_OVERRIDE where necessary.

Change-Id: I15261c3737a3284b99308453132f09ee7889c444
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>