Workaround for NCA-3399, use GuiApplication::devicePixelRatio() in QPainter instead of doing the calculation manually, since that's broken on OSX in certain situations

Change-Id: I7f1c9c0c8b8ecd15a930562ae4d80f55b89c032a