|
| QgsRelationAggregateSearchWidgetWrapper (QgsVectorLayer *layer, QgsRelationWidgetWrapper *wrapper, QWidget *parent SIP_TRANSFERTHIS=nullptr) |
| Constructor. More...
|
|
bool | applyDirectly () override |
| If this is true , then this search widget should take effect directly when its expression changes. More...
|
|
QWidget * | createWidget (QWidget *parent) override |
| This method should create a new widget with the provided parent. More...
|
|
bool | eventFilter (QObject *watched, QEvent *event) override |
|
QString | expression () const override |
| Will be used to access the widget's value. More...
|
|
void | setExpression (const QString &value) override |
| Set the expression which is currently used as filter for this widget. More...
|
|
bool | valid () const override |
| Returns true if the widget has been properly initialized. More...
|
|
| QgsSearchWidgetWrapper (QgsVectorLayer *vl, int fieldIdx, QWidget *parent=nullptr) |
| Create a new widget wrapper. More...
|
|
QString | aggregate () const |
| If in AggregateSearch mode, which aggregate should be used to construct the filter expression. More...
|
|
virtual bool | applyDirectly ()=0 |
| If this is true , then this search widget should take effect directly when its expression changes. More...
|
|
virtual QString | createExpression (FilterFlags flags) const |
| Creates a filter expression based on the current state of the search widget and the specified filter flags. More...
|
|
QString | createFieldIdentifier () const |
| Gets a field name or expression to use as field comparison. More...
|
|
virtual FilterFlags | defaultFlags () const |
| Returns the filter flags which should be set by default for the search widget. More...
|
|
virtual QString | expression () const =0 |
| Will be used to access the widget's value. More...
|
|
int | fieldIndex () const |
| Returns the field index. More...
|
|
void | setAggregate (const QString &aggregate) |
| If in AggregateSearch mode, which aggregate should be used to construct the filter expression. More...
|
|
virtual FilterFlags | supportedFlags () const |
| Returns filter flags supported by the search widget. More...
|
|
| QgsWidgetWrapper (QgsVectorLayer *vl, QWidget *editor=nullptr, QWidget *parent=nullptr) |
| Create a new widget wrapper. More...
|
|
QVariantMap | config () const |
| Returns the whole config. More...
|
|
QVariant | config (const QString &key, const QVariant &defaultVal=QVariant()) const |
| Use this inside your overridden classes to access the configuration. More...
|
|
const QgsAttributeEditorContext & | context () const |
| Returns information about the context in which this widget is shown. More...
|
|
QgsPropertyCollection & | dataDefinedProperties () |
| Returns a reference to the editor widget's property collection, used for data defined overrides. More...
|
|
const QgsPropertyCollection & | dataDefinedProperties () const |
| Returns a reference to the editor widget's property collection, used for data defined overrides. More...
|
|
QgsVectorLayer * | layer () const |
| Returns the vector layer associated with the widget. More...
|
|
void | notifyAboutToSave () |
| Notify this widget, that the containing form is about to save and that any pending changes should be pushed to the edit buffer or they might be lost. More...
|
|
void | setConfig (const QVariantMap &config) |
| Will set the config of this wrapper to the specified config. More...
|
|
void | setContext (const QgsAttributeEditorContext &context) |
| Set the context in which this widget is shown. More...
|
|
void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
| Sets the editor widget's property collection, used for data defined overrides. More...
|
|
virtual bool | valid () const =0 |
| Returns true if the widget has been properly initialized. More...
|
|
QWidget * | widget () |
| Access the widget managed by this wrapper. More...
|
|
template<class T > |
T * | widget () |
| Access the widget managed by this wrapper and cast it to a given type. More...
|
|