From a54efa2255ba79f2322f2544371cd16166ec02e9 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 3 Sep 2021 12:58:53 +0200 Subject: [PATCH] fix build regression with qt < 5.13 --- src/librssguard/core/messagesmodel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/librssguard/core/messagesmodel.cpp b/src/librssguard/core/messagesmodel.cpp index ca59110e6..eb3850dee 100644 --- a/src/librssguard/core/messagesmodel.cpp +++ b/src/librssguard/core/messagesmodel.cpp @@ -63,7 +63,12 @@ QIcon MessagesModel::generateIconForScore(double score) { paint.fillPath(path, Qt::GlobalColor::white); paint.drawPath(path); +#if QT_VERSION >= 0x050D00 // Qt >= 5.13.0 path.clear(); +#else + path = QPainterPath(); +#endif + paint.setPen(Qt::GlobalColor::transparent); int bar_height = 6 * level;