Fix inputMethodQuery() signature as const

Gets actually called when signature matches base class one.