source as string

This commit is contained in:
Uwe Rathmann 2022-02-08 08:59:34 +01:00
parent 96e210ce3c
commit d38d4429f5
2 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,11 @@ QUrl QskStatusIndicator::source( int status ) const
return QUrl(); return QUrl();
} }
void QskStatusIndicator::setSource( int status, const QString& source )
{
setSource( status, QUrl( source ) );
}
void QskStatusIndicator::setSource( int status, const QUrl& url ) void QskStatusIndicator::setSource( int status, const QUrl& url )
{ {
bool hasChanged = false; bool hasChanged = false;

View File

@ -30,6 +30,7 @@ class QSK_EXPORT QskStatusIndicator : public QskControl
Q_INVOKABLE QUrl source( int status ) const; Q_INVOKABLE QUrl source( int status ) const;
Q_INVOKABLE void setSource( int status, const QUrl& url ); Q_INVOKABLE void setSource( int status, const QUrl& url );
void setSource( int status, const QString& );
QskGraphic graphic( int status ) const; QskGraphic graphic( int status ) const;
void setGraphic( int status, const QskGraphic& ); void setGraphic( int status, const QskGraphic& );