Skip to content
Permalink
Browse files
Fix duplicate layout warnings
  • Loading branch information
nyalldawson committed May 22, 2017
1 parent 3cd714a commit 9e331dc0d3351262531c235e66d684798e420ba7
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/locator/qgslocatorwidget.cpp
@@ -31,7 +31,7 @@ QgsLocatorWidget::QgsLocatorWidget( QWidget *parent )
, mLocator( new QgsLocator( this ) )
, mLineEdit( new QgsFilterLineEdit() )
, mLocatorModel( new QgsLocatorModel( this ) )
, mResultsView( new QgsLocatorResultsView( this ) )
, mResultsView( new QgsLocatorResultsView() )
{
mLineEdit->setShowClearButton( true );
#ifdef Q_OS_MACX
@@ -63,7 +63,7 @@ QgsLocatorWidget::QgsLocatorWidget( QWidget *parent )
mResultsContainer->setAnchorPoint( QgsFloatingWidget::BottomLeft );
mResultsContainer->setAnchorWidgetPoint( QgsFloatingWidget::TopLeft );

QHBoxLayout *containerLayout = new QHBoxLayout( this );
QHBoxLayout *containerLayout = new QHBoxLayout();
containerLayout->setMargin( 0 );
containerLayout->setContentsMargins( 0, 0, 0, 0 );
containerLayout->addWidget( mResultsView );

0 comments on commit 9e331dc

Please sign in to comment.