mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-29 00:05:09 -04:00
The search widget wrappers for relations have two issues
* They recursively load whatever relations are defined. With self-referencing this leads to 💀
This is addressed by only loading one level of relations in search widgets.
* They would load even when hidden, leading to long load times on attribute table opening.
We now only actually load the form on the show event
56 lines
1.9 KiB
Plaintext
56 lines
1.9 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/editorwidgets/qgsrelationaggregatesearchwidgetwrapper.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsRelationAggregateSearchWidgetWrapper : QgsSearchWidgetWrapper
|
|
{
|
|
%Docstring
|
|
|
|
Search widget for the children of a relation.
|
|
For each attribute of the child, an additional QgsAggregateToolButton will be shown
|
|
to determine how the values should be aggregated for searching.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsrelationaggregatesearchwidgetwrapper.h"
|
|
%End
|
|
public:
|
|
|
|
explicit QgsRelationAggregateSearchWidgetWrapper( QgsVectorLayer *layer, QgsRelationWidgetWrapper *wrapper, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor
|
|
%End
|
|
|
|
virtual QString expression() const;
|
|
|
|
|
|
virtual bool valid() const;
|
|
|
|
virtual QWidget *createWidget( QWidget *parent );
|
|
|
|
virtual bool applyDirectly();
|
|
|
|
virtual void setExpression( const QString &value );
|
|
|
|
virtual bool eventFilter( QObject *watched, QEvent *event );
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/editorwidgets/qgsrelationaggregatesearchwidgetwrapper.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|