minor fixes

This commit is contained in:
Uwe Rathmann 2022-12-03 10:38:42 +01:00
parent 2fce815925
commit 1e7dde8f53
3 changed files with 2 additions and 7 deletions

View File

@ -6,7 +6,6 @@
#include "Stroke.h" #include "Stroke.h"
#include <QPen> #include <QPen>
#if 0
Stroke::Stroke( const QPen& pen ) noexcept Stroke::Stroke( const QPen& pen ) noexcept
: m_width( pen.widthF() ) : m_width( pen.widthF() )
, m_miterLimit( pen.miterLimit() ) , m_miterLimit( pen.miterLimit() )
@ -18,8 +17,6 @@ Stroke::Stroke( const QPen& pen ) noexcept
{ {
} }
#endif
void Stroke::setColor( const QColor& color ) noexcept void Stroke::setColor( const QColor& color ) noexcept
{ {
m_color = color; m_color = color;

View File

@ -50,9 +50,7 @@ class Stroke
Stroke() noexcept = default; Stroke() noexcept = default;
Stroke( const QColor&, qreal width = 1.0 ) noexcept; Stroke( const QColor&, qreal width = 1.0 ) noexcept;
#if 0
Stroke( const QPen& ) noexcept; Stroke( const QPen& ) noexcept;
#endif
bool operator==( const Stroke& ) const noexcept; bool operator==( const Stroke& ) const noexcept;
bool operator!=( const Stroke& ) const noexcept; bool operator!=( const Stroke& ) const noexcept;

View File

@ -40,8 +40,8 @@ namespace
stroke.setJoinStyle( Stroke::MiterJoin ); stroke.setJoinStyle( Stroke::MiterJoin );
#if 0 #if 0
stroke.setLineStyle( Stroke::DashLine ); // stroke.setLineStyle( Stroke::DashLine );
stroke.setColor( QskRgb::toTransparent( color(), alpha ) ); stroke.setColor( QskRgb::toTransparent( color, 100 ) );
#endif #endif
return stroke; return stroke;
} }