Deckstats: move QUrl handling into its own function; better separation of qt4/qt5 code