From ef0fa6e7ac659c21b61ab5335b516b052e379d39 Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Wed, 5 Mar 2025 09:49:16 +0100 Subject: [PATCH] same change for polygons as for other primitives to support Qt5 & Qt6 --- sources/editor/graphicspart/partpolygon.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sources/editor/graphicspart/partpolygon.cpp b/sources/editor/graphicspart/partpolygon.cpp index 30c5a2a0b..e2ef2ffd1 100644 --- a/sources/editor/graphicspart/partpolygon.cpp +++ b/sources/editor/graphicspart/partpolygon.cpp @@ -66,14 +66,7 @@ void PartPolygon::paint(QPainter *painter, const QStyleOptionGraphicsItem *optio applyStylesToQPainter(*painter); QPen t = painter -> pen(); -#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove - t.setCosmetic(options && options -> levelOfDetail < 1.0); -#else -#if TODO_LIST -#pragma message("@TODO remove code for QT 6 or later") -#endif t.setCosmetic(options && options -> levelOfDetailFromTransform(painter->worldTransform()) < 1.0); -#endif if (isSelected()) t.setColor(Qt::red); painter -> setPen(t);