From 76a7e94358691ec38479beb0cda874251b96e7ad Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Mon, 23 Jan 2023 11:00:03 +0100 Subject: [PATCH] default value for reset added --- src/nodes/QskVertex.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/nodes/QskVertex.h b/src/nodes/QskVertex.h index 91642ed0..70228175 100644 --- a/src/nodes/QskVertex.h +++ b/src/nodes/QskVertex.h @@ -205,6 +205,11 @@ namespace QskVertex return ( width <= 0 ) || ( height <= 0 ); } + inline operator QRectF() const + { + return QRectF( left, top, width, height ); + } + qreal left = 0.0; qreal top = 0.0; qreal right = 0.0; @@ -226,7 +231,7 @@ namespace reset( stepCount, inverted ); } - void reset( int stepCount, bool inverted ) + void reset( int stepCount, bool inverted = false ) { m_inverted = inverted;