upgrade to Qt 5
use new QObject::connect syntax
combine everything into one program