Fix close on pure Qt4 system (with no qt3support)

Just replace deprecated call, which is not present on pure Qt4 systems.