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();
|
||||
}
|
||||
|
||||
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
|
||||
{
|
||||
if ( index >= m_stops.size() )
|
||||
@ -405,21 +390,6 @@ qreal QskGradient::stopAt( int index ) const
|
||||
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
|
||||
{
|
||||
if ( index >= m_stops.size() )
|
||||
|
@ -107,9 +107,6 @@ class QSK_EXPORT QskGradient
|
||||
const QVector< QRgb >&, bool discrete = false );
|
||||
|
||||
private:
|
||||
void setStopAt( int index, qreal stop );
|
||||
void setColorAt( int index, const QColor& color );
|
||||
|
||||
void updateStatusBits() const;
|
||||
|
||||
QVector< QskGradientStop > m_stops;
|
||||
|
Loading…
x
Reference in New Issue
Block a user