From dc565c55b8d93bec3357edcf6f3970dd5d4c5a42 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 22 Nov 2022 12:36:56 +0200 Subject: [PATCH] Fix build. --- src/libs/vlayout/vsapoint.h | 7 ------- .../vtools/tools/backgroundimage/vbackgroundimageitem.cpp | 1 - 2 files changed, 8 deletions(-) diff --git a/src/libs/vlayout/vsapoint.h b/src/libs/vlayout/vsapoint.h index 21f5bed68..c6608e31d 100644 --- a/src/libs/vlayout/vsapoint.h +++ b/src/libs/vlayout/vsapoint.h @@ -96,13 +96,6 @@ private: Q_DECLARE_METATYPE(VSAPoint) // NOLINT Q_DECLARE_TYPEINFO(VSAPoint, Q_MOVABLE_TYPE); // NOLINT -// See https://stackoverflow.com/a/46719572/3045403 -#if __cplusplus < 201703L -inline constexpr qreal VSAPoint::passmarkFactor; // NOLINT(readability-redundant-declaration) -inline constexpr qreal VSAPoint::maxPassmarkLength; // NOLINT(readability-redundant-declaration) -inline constexpr qreal VSAPoint::minSAWidth; // NOLINT(readability-redundant-declaration) -#endif - //--------------------------------------------------------------------------------------------------------------------- Q_DECL_CONSTEXPR inline VSAPoint::VSAPoint(qreal xpos, qreal ypos) : VLayoutPoint(xpos, ypos) diff --git a/src/libs/vtools/tools/backgroundimage/vbackgroundimageitem.cpp b/src/libs/vtools/tools/backgroundimage/vbackgroundimageitem.cpp index 6bd614796..cf5b14866 100644 --- a/src/libs/vtools/tools/backgroundimage/vbackgroundimageitem.cpp +++ b/src/libs/vtools/tools/backgroundimage/vbackgroundimageitem.cpp @@ -540,7 +540,6 @@ void VBackgroundImageItem::keyPressEvent(QKeyEvent *event) break; } - QGraphicsObject::keyPressEvent(event); }