Un-duplicate code in UserDependencyScanner::evaluate
Un-duplicate code in UserDependencyScanner::evaluate

Use Transformer::translateFileConfig to create an artifact's JS
representation. This removes duplicated code and makes sure that no
artifact property is missing.

Change-Id: Iba3d5713eb08f2c5a6f1aa84e1cfbe09e3a549f6
Reviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@qt.io>

qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qt-labs/qbs