From 92a0e57bf7872b8d57cc53358a9a267a35c07eaf Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 10 Jan 2024 11:19:59 +0200 Subject: [PATCH] Removing Qt 6 specific stuff. --- src/app/puzzle/scene/vpgraphicspiece.cpp | 3 +-- src/app/puzzle/scene/vpgraphicssheet.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/puzzle/scene/vpgraphicspiece.cpp b/src/app/puzzle/scene/vpgraphicspiece.cpp index 68b719838..22adaec14 100644 --- a/src/app/puzzle/scene/vpgraphicspiece.cpp +++ b/src/app/puzzle/scene/vpgraphicspiece.cpp @@ -49,14 +49,13 @@ #include "../vlayout/vgraphicsfillitem.h" #include "../vlayout/vlayoutpiecepath.h" #include "../vlayout/vtextmanager.h" +#include "../vmisc/compatibility.h" #include "../vmisc/svgfont/vsvgfont.h" #include "../vmisc/svgfont/vsvgfontdatabase.h" #include "../vmisc/svgfont/vsvgfontengine.h" #include "../vmisc/theme/vscenestylesheet.h" #include "../vpapplication.h" #include "../vpatterndb/vpiecepath.h" -#include "compatibility.h" -#include "qtpreprocessorsupport.h" #include "undocommands/vpundomovepieceonsheet.h" #include "undocommands/vpundopiecemove.h" #include "vpiecegrainline.h" diff --git a/src/app/puzzle/scene/vpgraphicssheet.cpp b/src/app/puzzle/scene/vpgraphicssheet.cpp index 8ceeb0dbe..07cbde9b6 100644 --- a/src/app/puzzle/scene/vpgraphicssheet.cpp +++ b/src/app/puzzle/scene/vpgraphicssheet.cpp @@ -63,7 +63,7 @@ void PaintVerticalFoldShadow(QPainter *painter, const QRectF &sheetRect) painter->drawLine(shadowLine); painter->drawLine(QLineF(shadowLine.p2(), shadowP)); - QPolygonF const shadow{sheetRect.topLeft(), shadowLine.p2(), shadowP, sheetRect.topLeft()}; + QPolygonF const shadow({sheetRect.topLeft(), shadowLine.p2(), shadowP, sheetRect.topLeft()}); painter->setBrush(QBrush(VSceneStylesheet::ManualLayoutStyle().SheetFoldShadowColor())); painter->drawPolygon(shadow);