Fix wrongly included radial gradient enum for QGradient presets

Change-Id: If8372224d7e113c1f55468c0de69dcab9804138f
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Tor Arne Vestbø 2018-06-28 13:52:51 +02:00
parent 3d17542cde
commit fb0271564d
2 changed files with 7 additions and 5 deletions

View File

@ -231,7 +231,6 @@ public:
NearMoon = 24,
WildApple = 25,
SaintPetersburg = 26,
AriellesSmile = 27,
PlumPlate = 28,
EverlastingSky = 29,
HappyFisher = 30,
@ -373,7 +372,7 @@ public:
FrozenHeat = 177,
GagarinView = 178,
FabledSunset = 179,
PerfectBlue = 180
PerfectBlue = 180,
};
Q_ENUM(Preset)

View File

@ -113,13 +113,16 @@ fs.readFile(filename, (err, css) => {
});
gradients[gradients.length - 1] = { start, end, stops };
if (mode == 'debug')
console.log(name, args, gradients[gradients.length - 1])
});
if (!gradients[gradients.length - 1])
return; // Not supported
enums.push(name);
if (mode == 'enums')
if (mode == 'debug')
console.log(name, args, gradients[gradients.length - 1])
else if (mode == 'enums')
console.log(`${name} = ${gradients.length},`)
});