Skip to content
Permalink
Browse files

Show group box for aggregate search

  • Loading branch information
m-kuhn committed Nov 20, 2017
1 parent f0a8466 commit c72739b037050220331d4257f18f7a2b3d02cb5f
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/gui/editorwidgets/qgsrelationaggregatesearchwidgetwrapper.cpp
@@ -18,8 +18,10 @@
#include "qgsattributeform.h"
#include "qgsrelationwidgetwrapper.h"
#include "qgslogger.h"
#include "qgscollapsiblegroupbox.h"

#include <QLabel>
#include <QGridLayout>

QgsRelationAggregateSearchWidgetWrapper::QgsRelationAggregateSearchWidgetWrapper( QgsVectorLayer *vl, QgsRelationWidgetWrapper *wrapper, QWidget *parent )
: QgsSearchWidgetWrapper( vl, -1, parent )
@@ -51,6 +53,8 @@ QWidget *QgsRelationAggregateSearchWidgetWrapper::createWidget( QWidget *parent
QWidget *widget;
QgsRelation relation = mWrapper->relation();

QgsCollapsibleGroupBox *groupBox = new QgsCollapsibleGroupBox( relation.name() );

if ( !relation.isValid() )
{
widget = new QLabel( tr( "Relation not valid" ) );
@@ -63,7 +67,10 @@ QWidget *QgsRelationAggregateSearchWidgetWrapper::createWidget( QWidget *parent
widget = mAttributeForm;
}

return widget;
groupBox->setLayout( new QGridLayout() );
groupBox->layout()->addWidget( widget );

return groupBox;
}

bool QgsRelationAggregateSearchWidgetWrapper::applyDirectly()

0 comments on commit c72739b

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