fix: build with lower Qt version

This commit is contained in:
Gary Wang 2021-03-01 13:24:03 +08:00
parent 552d0fe072
commit 6d460a27d7

View File

@ -10,7 +10,7 @@
#include <QStyleOptionGraphicsItem>
// TODO: remove this once we drop older Qt support.
#if QT_VERSION_CHECK(5, 13, 0)
#if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
#define COMPAT_CONSTCOLOR constexpr
#else
#define COMPAT_CONSTCOLOR const