Fix shadow build with Qt 5.
Fix shadow build with Qt 5.

qmake code copied over from Qt Creator.

Change-Id: Ib2100a5dd3a85d7e7b96daac41be4c98bb5d82cb
Reviewed-by: Oswald Buddenhagen <6a8868beda3e139b5ac22b2534a23d3e6ba81819@digia.com>
Reviewed-by: Joerg Bornemann <47777b9406dbddd02a3fdca8341789a013805a11@digia.com>

villytiger/qbs,qt-labs/qbs,qt-labs/qbs,gatzka/qt-labs-qbs,Distrotech/qbs,villytiger/qbs,Distrotech/qbs,villytiger/qbs,Distrotech/qbs,gatzka/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,gatzka/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,Distrotech/qbs,qt-labs/qbs,qt-labs/qbs,Distrotech/qbs,gatzka/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,villytiger/qbs,villytiger/qbs,gatzka/qt-labs-qbs,qt-labs/qbs,Distrotech/qbs,villytiger/qbs,qt-labs/qbs,gatzka/qt-labs-qbs,qtproject/qt-labs-qbs,Distrotech/qbs,gatzka/qt-labs-qbs