compiler warnings fixed

This commit is contained in:
Uwe Rathmann 2023-01-10 12:09:27 +01:00
parent e50fb269c3
commit da7e1f7ae4

View File

@ -14,6 +14,8 @@
#include <qpainterpath.h> #include <qpainterpath.h>
#include <qpen.h> #include <qpen.h>
#define STROKE_ADJUSTMENT 0
static inline QTransform transformForRects( const QRectF& r1, const QRectF& r2 ) static inline QTransform transformForRects( const QRectF& r1, const QRectF& r2 )
{ {
return QTransform::fromTranslate( -r1.x(), -r1.y() ) return QTransform::fromTranslate( -r1.x(), -r1.y() )
@ -21,6 +23,8 @@ static inline QTransform transformForRects( const QRectF& r1, const QRectF& r2 )
* QTransform::fromTranslate( r2.x(), r2.y() ); * QTransform::fromTranslate( r2.x(), r2.y() );
} }
#if STROKE_ADJUSTMENT
static inline qreal effectiveStrokeWidth( static inline qreal effectiveStrokeWidth(
const Stroke& stroke, const QRectF& r1, const QRectF& r2 ) const Stroke& stroke, const QRectF& r1, const QRectF& r2 )
{ {
@ -37,6 +41,8 @@ static inline qreal effectiveStrokeWidth(
return width; return width;
} }
#endif
class ShapeItem::PrivateData class ShapeItem::PrivateData
{ {
public: public:
@ -167,7 +173,8 @@ void ShapeItem::updateNode( QSGNode* parentNode )
} }
auto fillRect = rect; auto fillRect = rect;
#if 0
#if STROKE_ADJUSTMENT
/* /*
when the stroke is not opaque ( transparent color or dashed ) we when the stroke is not opaque ( transparent color or dashed ) we
would see, that the filling is not inside. But simply adjusting would see, that the filling is not inside. But simply adjusting