missing setter for Qt::GlobalColor added
This commit is contained in:
parent
33bb68d903
commit
688c7881b2
|
@ -54,6 +54,12 @@ void QskGradientStop::setStop( qreal position, const QColor& color ) noexcept
|
|||
m_color = color;
|
||||
}
|
||||
|
||||
void QskGradientStop::setStop( qreal position, Qt::GlobalColor color ) noexcept
|
||||
{
|
||||
m_position = position;
|
||||
m_color = color;
|
||||
}
|
||||
|
||||
QskHashValue QskGradientStop::hash( QskHashValue seed ) const noexcept
|
||||
{
|
||||
auto hash = qHashBits( &m_position, sizeof( m_position ), seed );
|
||||
|
|
|
@ -33,6 +33,7 @@ class QSK_EXPORT QskGradientStop
|
|||
constexpr bool operator!=( const QskGradientStop& ) const noexcept;
|
||||
|
||||
void setStop( qreal position, const QColor& ) noexcept;
|
||||
void setStop( qreal position, Qt::GlobalColor ) noexcept;
|
||||
void setStop( qreal position, QRgb ) noexcept;
|
||||
|
||||
constexpr qreal position() const noexcept;
|
||||
|
|
Loading…
Reference in New Issue