QskGraphicLabel::setSource( QString ) added

This commit is contained in:
Uwe Rathmann 2018-05-01 11:50:06 +02:00
parent 3ffd9b3a71
commit 9fe1d45345
2 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,11 @@ QUrl QskGraphicLabel::source() const
return m_data->source; return m_data->source;
} }
void QskGraphicLabel::setSource( const QString& source )
{
setSource( QUrl( source ) );
}
void QskGraphicLabel::setSource( const QUrl& url ) void QskGraphicLabel::setSource( const QUrl& url )
{ {
if ( url == m_data->source ) if ( url == m_data->source )

View File

@ -60,6 +60,7 @@ public:
virtual QskColorFilter graphicFilter() const; virtual QskColorFilter graphicFilter() const;
QUrl source() const; QUrl source() const;
void setSource( const QString& source );
void setSource( const QUrl& url ); void setSource( const QUrl& url );
void setSourceSize( const QSize& size ); void setSourceSize( const QSize& size );