diff --git a/library/tulip-gui/include/tulip/TulipFontIconEngine.h b/library/tulip-gui/include/tulip/TulipFontIconEngine.h index 5f2d287b4b..837d157d6c 100644 --- a/library/tulip-gui/include/tulip/TulipFontIconEngine.h +++ b/library/tulip-gui/include/tulip/TulipFontIconEngine.h @@ -38,7 +38,11 @@ class TLP_QT_SCOPE TulipFontIconEngine : public QIconEngine { TulipFontIconEngine(const TulipFontIconEngine &engine) : QIconEngine(), codePoint(engine.codePoint), fontName(engine.fontName) {} +#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) TulipFontIconEngine *clone() const override { +#else + TulipFontIconEngine *clone() const { +#endif return new TulipFontIconEngine(*this); }