Skip to content

Commit

Permalink
Remove unnneeded method
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Nov 20, 2017
1 parent ddca8b6 commit 456ceba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
1 change: 0 additions & 1 deletion python/gui/qgsattributeformwidget.sip
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ class QgsAttributeFormWidget : QWidget /Abstract/




};

/************************************************************************
Expand Down
9 changes: 2 additions & 7 deletions src/gui/qgsattributeformwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ QgsAttributeFormWidget::QgsAttributeFormWidget( QgsWidgetWrapper *widget, QgsAtt
mSearchPage->setLayout( l );
l->addWidget( mSearchFrame, 1 );
mSearchWidgetToolButton = new QgsSearchWidgetToolButton();
mSearchWidgetToolButton->setObjectName( QStringLiteral( "SearchWidgetToolButton" ) );
connect( mSearchWidgetToolButton, &QgsSearchWidgetToolButton::activeFlagsChanged,
this, &QgsAttributeFormWidget::searchWidgetFlagsChanged );
l->addWidget( mSearchWidgetToolButton, 0 );
Expand Down Expand Up @@ -129,15 +130,9 @@ void QgsAttributeFormWidget::resetSearch()
}
}

QgsSearchWidgetToolButton *QgsAttributeFormWidget::searchWidgetToolButton() SIP_SKIP
{
return mSearchWidgetToolButton;
}

QgsVectorLayer *QgsAttributeFormWidget::layer()
{
QgsAttributeForm *aform = form();
return aform ? aform->layer() : nullptr;
return mWidget->layer();
}

void QgsAttributeFormWidget::searchWidgetFlagsChanged( QgsSearchWidgetWrapper::FilterFlags flags )
Expand Down
7 changes: 0 additions & 7 deletions src/gui/qgsattributeformwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,6 @@ class GUI_EXPORT QgsAttributeFormWidget : public QWidget // SIP_ABSTRACT
*/
QWidget *searchPage() const SIP_SKIP;

/**
* Returns a pointer to the search widget tool button in the widget.
* \note this method is in place for unit testing only, and is not considered
* stable API
*/
QgsSearchWidgetToolButton *searchWidgetToolButton() SIP_SKIP;

private slots:

//! Triggered when search button flags are changed
Expand Down

0 comments on commit 456ceba

Please sign in to comment.