Resolve compiler warnings
by adding the override keyword where needed and removing unused Q_D(class) usages