diff --git a/core_lib/src/canvascursorpainter.cpp b/core_lib/src/canvascursorpainter.cpp index b618560c4..46ae047a5 100644 --- a/core_lib/src/canvascursorpainter.cpp +++ b/core_lib/src/canvascursorpainter.cpp @@ -7,7 +7,7 @@ CanvasCursorPainter::CanvasCursorPainter() void CanvasCursorPainter::setupPen() { - mCursorPen = Qt::gray; + mCursorPen = QPen(Qt::gray); mCursorPen.setWidthF(1); mCursorPen.setCosmetic(true); } diff --git a/core_lib/src/canvascursorpainter.h b/core_lib/src/canvascursorpainter.h index cd8b8728a..08bf89685 100644 --- a/core_lib/src/canvascursorpainter.h +++ b/core_lib/src/canvascursorpainter.h @@ -2,6 +2,7 @@ #define CANVASCURSORPAINTER_H #include +#include struct CanvasCursorPainterOptions {