source as string
This commit is contained in:
parent
96e210ce3c
commit
d38d4429f5
@ -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;
|
||||||
|
@ -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& );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user