Skip to content

Commit

Permalink
Merge pull request #37168 from elpaso/backport-37093
Browse files Browse the repository at this point in the history
[backport] Fix image size ignored in image widget
  • Loading branch information
elpaso committed Jun 12, 2020
2 parents 5febb4c + 40877aa commit b586a6f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gui/editorwidgets/qgsexternalresourcewidgetwrapper.cpp
Expand Up @@ -185,6 +185,14 @@ void QgsExternalResourceWidgetWrapper::initWidget( QWidget *editor )
{
mQgsWidget->fileWidget()->setFilter( cfg.value( QStringLiteral( "FileWidgetFilter" ) ).toString() );
}
if ( cfg.contains( QStringLiteral( "DocumentViewerHeight" ) ) )
{
mQgsWidget->setDocumentViewerHeight( cfg.value( QStringLiteral( "DocumentViewerHeight" ) ).toInt( ) );
}
if ( cfg.contains( QStringLiteral( "DocumentViewerWidth" ) ) )
{
mQgsWidget->setDocumentViewerWidth( cfg.value( QStringLiteral( "DocumentViewerWidth" ) ).toInt( ) );
}
}

if ( mLineEdit )
Expand Down

0 comments on commit b586a6f

Please sign in to comment.