From d38d4429f5c3b87c163deee5be206b84a31ac36e Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 8 Feb 2022 08:59:34 +0100 Subject: [PATCH] source as string --- src/controls/QskStatusIndicator.cpp | 5 +++++ src/controls/QskStatusIndicator.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/controls/QskStatusIndicator.cpp b/src/controls/QskStatusIndicator.cpp index d27a8d90..6fbc5963 100644 --- a/src/controls/QskStatusIndicator.cpp +++ b/src/controls/QskStatusIndicator.cpp @@ -77,6 +77,11 @@ QUrl QskStatusIndicator::source( int status ) const return QUrl(); } +void QskStatusIndicator::setSource( int status, const QString& source ) +{ + setSource( status, QUrl( source ) ); +} + void QskStatusIndicator::setSource( int status, const QUrl& url ) { bool hasChanged = false; diff --git a/src/controls/QskStatusIndicator.h b/src/controls/QskStatusIndicator.h index 42c62399..a357593a 100644 --- a/src/controls/QskStatusIndicator.h +++ b/src/controls/QskStatusIndicator.h @@ -30,6 +30,7 @@ class QSK_EXPORT QskStatusIndicator : public QskControl Q_INVOKABLE QUrl source( int status ) const; Q_INVOKABLE void setSource( int status, const QUrl& url ); + void setSource( int status, const QString& ); QskGraphic graphic( int status ) const; void setGraphic( int status, const QskGraphic& );