QString version of setGraphicSource added

This commit is contained in:
Uwe Rathmann 2018-06-07 07:24:34 +02:00
parent 1e71259406
commit 87f4d718c5
2 changed files with 6 additions and 0 deletions

View File

@ -158,6 +158,11 @@ void QskPushButton::setGraphicSource( const QUrl& url )
Q_EMIT graphicSourceChanged();
}
void QskPushButton::setGraphicSource(const QString &source)
{
setGraphicSource( QUrl( source ) );
}
QUrl QskPushButton::graphicSource() const
{
return m_data->graphicSource;

View File

@ -63,6 +63,7 @@ public:
public Q_SLOTS:
void setText( const QString& text );
void setGraphicSource( const QUrl& url );
void setGraphicSource( const QString& source );
void setGraphic( const QskGraphic& );
Q_SIGNALS: