Changes to QSettings* createQSettings(const QString& KEY)

Just started to read source code. Fixed little errors that were found during build. I am inexperienced trying to gain some experience, so forgive me if the changes were not of much use.