convenience setters added
This commit is contained in:
parent
40aeb80618
commit
6a12eeda08
@ -25,6 +25,10 @@ public:
|
|||||||
~QskColorFilter();
|
~QskColorFilter();
|
||||||
|
|
||||||
void addColorSubstitution( QRgb from, QRgb to );
|
void addColorSubstitution( QRgb from, QRgb to );
|
||||||
|
void addColorSubstitution( Qt::GlobalColor, QRgb );
|
||||||
|
void addColorSubstitution( QRgb, Qt::GlobalColor );
|
||||||
|
void addColorSubstitution( Qt::GlobalColor, Qt::GlobalColor );
|
||||||
|
|
||||||
void reset();
|
void reset();
|
||||||
|
|
||||||
QPen substituted( const QPen& ) const;
|
QPen substituted( const QPen& ) const;
|
||||||
@ -68,6 +72,22 @@ QskColorFilter::substitutions() const
|
|||||||
return m_substitutions;
|
return m_substitutions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void QskColorFilter::addColorSubstitution( Qt::GlobalColor from, QRgb to )
|
||||||
|
{
|
||||||
|
addColorSubstitution( QColor( from ).rgb(), to );
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void QskColorFilter::addColorSubstitution( QRgb from, Qt::GlobalColor to )
|
||||||
|
{
|
||||||
|
addColorSubstitution( from, QColor( to ).rgb() );
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void QskColorFilter::addColorSubstitution(
|
||||||
|
Qt::GlobalColor from, Qt::GlobalColor to )
|
||||||
|
{
|
||||||
|
addColorSubstitution( QColor( from ).rgb(), QColor( to ).rgb() );
|
||||||
|
}
|
||||||
|
|
||||||
Q_DECLARE_METATYPE( QskColorFilter )
|
Q_DECLARE_METATYPE( QskColorFilter )
|
||||||
|
|
||||||
#ifndef QT_NO_DEBUG_STREAM
|
#ifndef QT_NO_DEBUG_STREAM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user