Updating QPrintPreviewDialog for qt5