Use Q_DECL_OVERRIDE instead of override to please travis-ci

G++ 4.6.3 doesn't support the override keyword