Properly implement the hidpi switch
This uses QSettings, because kconfig only works when we already have an application, and by then it's too late to set the flag.