QmlDesigner: Fix compile for Qt5.11

Amends 4176b17fff.

Change-Id: Ib9a95757bc4cbcf8ce13c432e5fda8b95282936b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Christian Stenger
2020-02-25 15:13:03 +01:00
parent 06b2023420
commit ece83d8e49

View File

@@ -42,7 +42,7 @@ public:
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
using Preset = QGradient::Preset;
#else
enum Preset {};
enum Preset { NumPresets = 0 };
#endif
explicit GradientPresetItem();