Fix check for declarative with Qt 5.0.2
Fix check for declarative with Qt 5.0.2

QT_CONFIG doesn't contain module names any more. Therefore
also check for QT.declarative.name (available since 5.0.0)

Task-number: QTBUG-30384
Change-Id: I2df090d510266c25e7bb50ba4f045eaedd98c643
Reviewed-by: Oswald Buddenhagen <6a8868beda3e139b5ac22b2534a23d3e6ba81819@digia.com>

amyvmiwei/qt-creator,duythanhphan/qt-creator,darksylinc/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,danimo/qt-creator,danimo/qt-creator,xianian/qt-creator,duythanhphan/qt-creator,darksylinc/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,malikcjm/qtcreator,amyvmiwei/qt-creator,colede/qtcreator,maui-packages/qt-creator,Distrotech/qtcreator,Distrotech/qtcreator,Distrotech/qtcreator,malikcjm/qtcreator,amyvmiwei/qt-creator,maui-packages/qt-creator,danimo/qt-creator,malikcjm/qtcreator,colede/qtcreator,kuba1/qtcreator,martyone/sailfish-qtcreator,maui-packages/qt-creator,danimo/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,farseerri/git_code,Distrotech/qtcreator,kuba1/qtcreator,richardmg/qtcreator,richardmg/qtcreator,xianian/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,omniacreator/qtcreator,darksylinc/qt-creator,malikcjm/qtcreator,colede/qtcreator,richardmg/qtcreator,maui-packages/qt-creator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,maui-packages/qt-creator,kuba1/qtcreator,AltarBeastiful/qt-creator,farseerri/git_code,AltarBeastiful/qt-creator,omniacreator/qtcreator,farseerri/git_code,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,darksylinc/qt-creator,AltarBeastiful/qt-creator,kuba1/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,colede/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,omniacreator/qtcreator,colede/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,xianian/qt-creator,kuba1/qtcreator,darksylinc/qt-creator,richardmg/qtcreator,richardmg/qtcreator,xianian/qt-creator,farseerri/git_code,richardmg/qtcreator,AltarBeastiful/qt-creator,xianian/qt-creator,duythanhphan/qt-creator,malikcjm/qtcreator,farseerri/git_code,danimo/qt-creator,martyone/sailfish-qtcreator,maui-packages/qt-creator,martyone/sailfish-qtcreator,duythanhphan/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,omniacreator/qtcreator,duythanhphan/qt-creator,duythanhphan/qt-creator,malikcjm/qtcreator,Distrotech/qtcreator,malikcjm/qtcreator,richardmg/qtcreator,colede/qtcreator,colede/qtcreator,omniacreator/qtcreator,farseerri/git_code,duythanhphan/qt-creator,darksylinc/qt-creator,xianian/qt-creator,omniacreator/qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,darksylinc/qt-creator,danimo/qt-creator,xianian/qt-creator,kuba1/qtcreator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,maui-packages/qt-creator,AltarBeastiful/qt-creator,farseerri/git_code