minor fixes
This commit is contained in:
parent
2fce815925
commit
1e7dde8f53
@ -6,7 +6,6 @@
|
||||
#include "Stroke.h"
|
||||
#include <QPen>
|
||||
|
||||
#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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user