unused private methods removed
This commit is contained in:
parent
b1f63999c6
commit
d3f9e97301
|
@ -382,21 +382,6 @@ int QskGradient::stopCount() const
|
||||||
return m_stops.count();
|
return m_stops.count();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QskGradient::setStopAt( int index, qreal stop )
|
|
||||||
{
|
|
||||||
if ( stop < 0.0 || stop > 1.0 )
|
|
||||||
{
|
|
||||||
qWarning( "Invalid gradient stop: %g, must be in the range [0,1]", stop );
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( index >= m_stops.size() )
|
|
||||||
m_stops.resize( index + 1 );
|
|
||||||
|
|
||||||
m_stops[ index ].setPosition( stop );
|
|
||||||
m_isDirty = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
qreal QskGradient::stopAt( int index ) const
|
qreal QskGradient::stopAt( int index ) const
|
||||||
{
|
{
|
||||||
if ( index >= m_stops.size() )
|
if ( index >= m_stops.size() )
|
||||||
|
@ -405,21 +390,6 @@ qreal QskGradient::stopAt( int index ) const
|
||||||
return m_stops[ index ].position();
|
return m_stops[ index ].position();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QskGradient::setColorAt( int index, const QColor& color )
|
|
||||||
{
|
|
||||||
if ( !color.isValid() )
|
|
||||||
{
|
|
||||||
qWarning( "Invalid gradient color" );
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( index >= m_stops.size() )
|
|
||||||
m_stops.resize( index + 1 );
|
|
||||||
|
|
||||||
m_stops[ index ].setColor( color );
|
|
||||||
m_isDirty = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
QColor QskGradient::colorAt( int index ) const
|
QColor QskGradient::colorAt( int index ) const
|
||||||
{
|
{
|
||||||
if ( index >= m_stops.size() )
|
if ( index >= m_stops.size() )
|
||||||
|
|
|
@ -107,9 +107,6 @@ class QSK_EXPORT QskGradient
|
||||||
const QVector< QRgb >&, bool discrete = false );
|
const QVector< QRgb >&, bool discrete = false );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setStopAt( int index, qreal stop );
|
|
||||||
void setColorAt( int index, const QColor& color );
|
|
||||||
|
|
||||||
void updateStatusBits() const;
|
void updateStatusBits() const;
|
||||||
|
|
||||||
QVector< QskGradientStop > m_stops;
|
QVector< QskGradientStop > m_stops;
|
||||||
|
|
Loading…
Reference in New Issue