QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
A widget for configuration of the properties of a relationship in a database. More...
#include <qgsdbrelationshipwidget.h>
Signals | |
void | validityChanged (bool isValid) |
Emitted whenever the validity of the relationship configuration in the widget changes. | |
Public Member Functions | |
QgsDbRelationWidget (QgsAbstractDatabaseProviderConnection *connection, QWidget *parent=nullptr) | |
Constructor for QgsDbRelationWidget with the specified parent widget, for the specified connection. | |
bool | isValid () const |
Returns true if the widget currently represents a valid relationship configuration. | |
QgsWeakRelation | relationship () const |
Returns the relationship as defined in the widget. | |
void | setRelationship (const QgsWeakRelation &relationship) |
Sets the current relationship to show properties for in the widget. | |
A widget for configuration of the properties of a relationship in a database.
Definition at line 37 of file qgsdbrelationshipwidget.h.
QgsDbRelationWidget::QgsDbRelationWidget | ( | QgsAbstractDatabaseProviderConnection * | connection, |
QWidget * | parent = nullptr |
||
) |
Constructor for QgsDbRelationWidget with the specified parent widget, for the specified connection.
Ownership of connection is transferred to the widget.
Definition at line 29 of file qgsdbrelationshipwidget.cpp.
bool QgsDbRelationWidget::isValid | ( | ) | const |
Returns true
if the widget currently represents a valid relationship configuration.
Definition at line 171 of file qgsdbrelationshipwidget.cpp.
QgsWeakRelation QgsDbRelationWidget::relationship | ( | ) | const |
Returns the relationship as defined in the widget.
Definition at line 142 of file qgsdbrelationshipwidget.cpp.
void QgsDbRelationWidget::setRelationship | ( | const QgsWeakRelation & | relationship | ) |
Sets the current relationship to show properties for in the widget.
Definition at line 122 of file qgsdbrelationshipwidget.cpp.
|
signal |
Emitted whenever the validity of the relationship configuration in the widget changes.