qt: fix compile issue in Qt GUI

This was introduced in 3e1cf9b. Needs a cast to qint64.