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); }