Skip to content
Permalink
Browse files

Merge pull request #37093 from elpaso/bugfix-gh33682-image-size-in-at…

…tachment-widget

Fix image size ignored in image widget
  • Loading branch information
elpaso committed Jun 11, 2020
2 parents 48b5d5c + 72c0ae7 commit 0cd636e8b01a2cfca679c13320d28003e7d20b4e
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 0cd636e

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