Refactored QSettings to use parameters from QApplication