From 1e7dde8f5322f86d842114370bd1cb16b3cadcd2 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Sat, 3 Dec 2022 10:38:42 +0100 Subject: [PATCH] minor fixes --- playground/shapes/Stroke.cpp | 3 --- playground/shapes/Stroke.h | 2 -- playground/shapes/main.cpp | 4 ++-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/playground/shapes/Stroke.cpp b/playground/shapes/Stroke.cpp index d33a5143..0336ee78 100644 --- a/playground/shapes/Stroke.cpp +++ b/playground/shapes/Stroke.cpp @@ -6,7 +6,6 @@ #include "Stroke.h" #include -#if 0 Stroke::Stroke( const QPen& pen ) noexcept : m_width( pen.widthF() ) , m_miterLimit( pen.miterLimit() ) @@ -18,8 +17,6 @@ Stroke::Stroke( const QPen& pen ) noexcept { } -#endif - void Stroke::setColor( const QColor& color ) noexcept { m_color = color; diff --git a/playground/shapes/Stroke.h b/playground/shapes/Stroke.h index 025f3fbb..45e76741 100644 --- a/playground/shapes/Stroke.h +++ b/playground/shapes/Stroke.h @@ -50,9 +50,7 @@ class Stroke Stroke() noexcept = default; Stroke( const QColor&, qreal width = 1.0 ) noexcept; -#if 0 Stroke( const QPen& ) noexcept; -#endif bool operator==( const Stroke& ) const noexcept; bool operator!=( const Stroke& ) const noexcept; diff --git a/playground/shapes/main.cpp b/playground/shapes/main.cpp index ab41aaf8..fd5485cd 100644 --- a/playground/shapes/main.cpp +++ b/playground/shapes/main.cpp @@ -40,8 +40,8 @@ namespace stroke.setJoinStyle( Stroke::MiterJoin ); #if 0 - stroke.setLineStyle( Stroke::DashLine ); - stroke.setColor( QskRgb::toTransparent( color(), alpha ) ); + // stroke.setLineStyle( Stroke::DashLine ); + stroke.setColor( QskRgb::toTransparent( color, 100 ) ); #endif return stroke; }