From bbee47fe35cf9317c21407142670f03a6ce9899e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 14 Nov 2017 15:06:22 +0200 Subject: [PATCH] Fix compatibility with Qt below version 5.5. --HG-- branch : develop --- .../vtools/tools/drawTools/operation/vtoolmove.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/libs/vtools/tools/drawTools/operation/vtoolmove.cpp b/src/libs/vtools/tools/drawTools/operation/vtoolmove.cpp index 89ede153e..0baa8253a 100644 --- a/src/libs/vtools/tools/drawTools/operation/vtoolmove.cpp +++ b/src/libs/vtools/tools/drawTools/operation/vtoolmove.cpp @@ -101,8 +101,18 @@ QPointF GetOriginPoint(const QVector objects, const VContainer *data, q case GOType::SplinePath: case GOType::CubicBezier: case GOType::CubicBezierPath: + { +#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0) originObjects.append(data->GeometricObject(id)->GetPoints()); +#else + const QVector points = data->GeometricObject(id)->GetPoints(); + foreach (const QPointF &point, points) + { + originObjects.append(point); + } +#endif // QT_VERSION >= QT_VERSION_CHECK(5, 5, 0) break; + } case GOType::Unknown: case GOType::PlaceLabel: Q_UNREACHABLE();