qt: Make askpassphrase dialog behave more sanely

Set minimum sizes appropriately, and make sure that they are enforced. Replaces #5226.