Skip to content
Permalink
Browse files

Fix margins on photo and web view edit widgets

(cherry-picked from ece46d1)
  • Loading branch information
nyalldawson committed Jul 2, 2016
1 parent 28a9b99 commit ef35faf4b9ea8822ed61029756b23a55c0c9c1de
@@ -158,6 +158,8 @@ QWidget* QgsPhotoWidgetWrapper::createWidget( QWidget* parent )
layout->addWidget( label, 0, 0, 1, 2 );
layout->addWidget( le, 1, 0 );
layout->addWidget( pb, 1, 1 );
layout->setMargin( 0 );
layout->setContentsMargins( 0, 0, 0, 0 );

container->setLayout( layout );

@@ -231,7 +233,9 @@ void QgsPhotoWidgetWrapper::setValue( const QVariant& value )
{
if ( value.isNull() )
{
whileBlocking( mLineEdit )->setText( QSettings().value( "qgis/nullValue", "NULL" ).toString() );
mLineEdit->blockSignals( true );
mLineEdit->setText( QSettings().value( "qgis/nullValue", "NULL" ).toString() );
mLineEdit->blockSignals( false );
clearPicture();
}
else
@@ -70,6 +70,8 @@ QWidget* QgsWebViewWidgetWrapper::createWidget( QWidget* parent )
layout->addWidget( webView, 0, 0, 1, 2 );
layout->addWidget( le, 1, 0 );
layout->addWidget( pb, 1, 1 );
layout->setMargin( 0 );
layout->setContentsMargins( 0, 0, 0, 0 );

container->setLayout( layout );

0 comments on commit ef35faf

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