[libngf-qt] Port to Qt 5