From 4ef15533f30943f767b564285f782d22aa0736dc Mon Sep 17 00:00:00 2001 From: Antoine Lambert Date: Tue, 24 Jul 2018 18:31:31 +0200 Subject: [PATCH] TulipFontIconEngine: Fix compilation with Qt4 --- library/tulip-gui/include/tulip/TulipFontIconEngine.h | 4 ++++ 1 file changed, 4 insertions(+) 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); }