Hearts manager Gary Locke had "nothing but praise" for his side after they edged out Queen of the South on penalties in the Scottish League Cup.