Skip to content

Commit

Permalink
Fix duplicate layout warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 22, 2017
1 parent 3cd714a commit 9e331dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/locator/qgslocatorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 9e331dc

Please sign in to comment.