Remove some uses of deprecated Qt functions.
Minor cleanup to use initializer lists where possible.
Fix #7 - Check for duplicate shortcuts.