From ffe9e904bc5c8cd46cd48e483f6ef52cd4ae46e2 Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Wed, 7 Sep 2022 21:50:58 +0200 Subject: [PATCH] bugfix attempt for compile error with QDataStream and JKQTPGraphSymbols --- lib/jkqtcommon/jkqtpdrawingtools.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/jkqtcommon/jkqtpdrawingtools.h b/lib/jkqtcommon/jkqtpdrawingtools.h index 0b156ce6f8..df22661a42 100644 --- a/lib/jkqtcommon/jkqtpdrawingtools.h +++ b/lib/jkqtcommon/jkqtpdrawingtools.h @@ -40,6 +40,8 @@ #include #include #include +#include +#include #include "jkqtcommon/jkqtpmathtools.h" #include "jkqtcommon/jkqtpcodestructuring.h" @@ -212,6 +214,7 @@ inline JKQTPGraphSymbols operator+(JKQTPGraphSymbols a, int64_t b) { return static_cast(static_cast(a)+b); } + /** \brief register a JKQTPCustomGraphSymbolFunctor that draws a custom symbol.Returns an ID that allows to access the symbol! * \ingroup jkqtptools_drawing * @@ -245,6 +248,18 @@ JKQTCOMMON_LIB_EXPORT QString JKQTPGraphSymbols2NameString(JKQTPGraphSymbols pos */ JKQTCOMMON_LIB_EXPORT JKQTPGraphSymbols String2JKQTPGraphSymbols(const QString& pos); + +inline QDataStream& operator<<(QDataStream& str, JKQTPGraphSymbols s) { + str<(s); + return str; +} + + +inline QDataStream& operator>>(QDataStream& str, JKQTPGraphSymbols& s) { + str<(s); + return str; +} + /*! \brief plot the specified symbol at pixel position x,y \ingroup jkqtptools_drawing