Exit application when the last window is closed
Clean ups and minor refactoring
Remove .ui file for MainWindow
Use QStringLiterals whether possible