Make code qt-5 compatible

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>