removed unecessary qdebug, removed qt 5 method call