Skip to content
Permalink
Browse files

Remove unnneeded method

  • Loading branch information
m-kuhn committed Nov 3, 2017
1 parent ddca8b6 commit 456cebae967122a0f7ea98e6fb4834be0b539e68
Showing with 2 additions and 15 deletions.
  1. +0 −1 python/gui/qgsattributeformwidget.sip
  2. +2 −7 src/gui/qgsattributeformwidget.cpp
  3. +0 −7 src/gui/qgsattributeformwidget.h
@@ -125,7 +125,6 @@ class QgsAttributeFormWidget : QWidget /Abstract/




};

/************************************************************************
@@ -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 );
@@ -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 )
@@ -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

0 comments on commit 456ceba

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