using updateResources for loading the image
This commit is contained in:
parent
422c40c397
commit
c71c496235
@ -240,7 +240,7 @@ QskGraphic QskGraphicLabel::loadSource( const QUrl& url ) const
|
|||||||
return Qsk::loadGraphic( url );
|
return Qsk::loadGraphic( url );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QskGraphicLabel::updateLayout()
|
void QskGraphicLabel::updateResources()
|
||||||
{
|
{
|
||||||
if ( !m_data->source.isEmpty() && m_data->isSourceDirty )
|
if ( !m_data->source.isEmpty() && m_data->isSourceDirty )
|
||||||
m_data->graphic = loadSource( m_data->source );
|
m_data->graphic = loadSource( m_data->source );
|
||||||
|
@ -95,7 +95,7 @@ class QSK_EXPORT QskGraphicLabel : public QskControl
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void changeEvent( QEvent* ) override;
|
void changeEvent( QEvent* ) override;
|
||||||
void updateLayout() override;
|
void updateResources() override;
|
||||||
virtual QskGraphic loadSource( const QUrl& ) const;
|
virtual QskGraphic loadSource( const QUrl& ) const;
|
||||||
|
|
||||||
QSizeF contentsSizeHint(
|
QSizeF contentsSizeHint(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user