mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-08-31 06:05:42 +02:00
14 lines
369 B
JavaScript
14 lines
369 B
JavaScript
|
var Utilities = require("qbs.Utilities");
|
||
|
|
||
|
function fullPath(product)
|
||
|
{
|
||
|
if (Utilities.versionCompare(product.Qt.core.version, "6.1") < 0)
|
||
|
return product.Qt.core.binPath + '/' + product.Qt.core.rccName;
|
||
|
return product.Qt.core.libExecPath + '/' + product.Qt.core.rccName;
|
||
|
}
|
||
|
|
||
|
function bound(min, val, max)
|
||
|
{
|
||
|
return Math.max(min, Math.min(max, val));
|
||
|
}
|