Wrap QSaveFile in ifdefs for Qt<5.2 compatibility