mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Warnings are shown, but features can be committed. Fields which fail an unenforced constraint are now shaded in yellow to differentiate from the red failure for enforced constraints.
29 lines
728 B
Plaintext
29 lines
728 B
Plaintext
|
|
class QgsRelationReferenceWidgetWrapper : QgsEditorWidgetWrapper
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsrelationreferencewidgetwrapper.h>
|
|
%End
|
|
|
|
public:
|
|
explicit QgsRelationReferenceWidgetWrapper( QgsVectorLayer* vl,
|
|
int fieldIdx,
|
|
QWidget* editor,
|
|
QgsMapCanvas* canvas,
|
|
QgsMessageBar* messageBar,
|
|
QWidget* parent /TransferThis/ = 0 );
|
|
|
|
virtual QWidget* createWidget( QWidget* parent );
|
|
virtual void initWidget( QWidget* editor );
|
|
virtual QVariant value();
|
|
bool valid() const;
|
|
|
|
public slots:
|
|
virtual void setValue( const QVariant& value );
|
|
virtual void setEnabled( bool enabled );
|
|
|
|
protected:
|
|
|
|
void updateConstraintWidgetStatus( ConstraintResult status );
|
|
};
|