Skip to content
Permalink
Browse files

Fix image size ignored in image widget

Fixes #33682  (maybe)
  • Loading branch information
elpaso committed Jun 10, 2020
1 parent dc6d34b commit 72c0ae73ba6822cec66641b68f38dbd03303105c
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/gui/editorwidgets/qgsexternalresourcewidgetwrapper.cpp
@@ -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 )

0 comments on commit 72c0ae7

Please sign in to comment.
You can’t perform that action at this time.