using updateResources for loading the image

This commit is contained in:
Uwe Rathmann 2019-09-18 08:41:53 +02:00
parent 422c40c397
commit c71c496235
2 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ QskGraphic QskGraphicLabel::loadSource( const QUrl& url ) const
return Qsk::loadGraphic( url );
}
void QskGraphicLabel::updateLayout()
void QskGraphicLabel::updateResources()
{
if ( !m_data->source.isEmpty() && m_data->isSourceDirty )
m_data->graphic = loadSource( m_data->source );

View File

@ -95,7 +95,7 @@ class QSK_EXPORT QskGraphicLabel : public QskControl
protected:
void changeEvent( QEvent* ) override;
void updateLayout() override;
void updateResources() override;
virtual QskGraphic loadSource( const QUrl& ) const;
QSizeF contentsSizeHint(