mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
|
|
/** \ingroup gui
|
|
* \class QgsRelationReferenceSearchWidgetWrapper
|
|
* Wraps a relation reference search widget.
|
|
* \note Added in version 2.16
|
|
*/
|
|
|
|
class QgsRelationReferenceSearchWidgetWrapper : QgsSearchWidgetWrapper
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsrelationreferencesearchwidgetwrapper.h>
|
|
%End
|
|
public:
|
|
|
|
explicit QgsRelationReferenceSearchWidgetWrapper( QgsVectorLayer* vl, int fieldIdx, QgsMapCanvas* canvas, QWidget* parent = nullptr );
|
|
bool applyDirectly();
|
|
QString expression();
|
|
bool valid() const;
|
|
QVariant value() const;
|
|
FilterFlags supportedFlags() const;
|
|
FilterFlags defaultFlags() const;
|
|
virtual QString createExpression( FilterFlags flags ) const;
|
|
|
|
public slots:
|
|
|
|
virtual void clearWidget();
|
|
virtual void setEnabled( bool enabled );
|
|
|
|
protected:
|
|
QWidget* createWidget( QWidget* parent );
|
|
void initWidget( QWidget* editor );
|
|
|
|
public slots:
|
|
|
|
//! Called when current value of search widget changes
|
|
void onValueChanged( const QVariant& value );
|
|
|
|
protected slots:
|
|
void setExpression( QString exp );
|
|
|
|
};
|
|
|