QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsDbRelationDialog Class Reference

A dialog for configuration of the properties of a relationship in a database. More...

#include <qgsdbrelationshipwidget.h>

Inheritance diagram for QgsDbRelationDialog:

Public Slots

void accept () override

Public Member Functions

 QgsDbRelationDialog (QgsAbstractDatabaseProviderConnection *connection, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
 Constructor for QgsDbRelationDialog, with the specified parent widget and window flags, for the specified connection.
QgsWeakRelation relationship () const
 Returns the relationship as defined in the dialog.
void setRelationship (const QgsWeakRelation &relationship)
 Sets the current relationship to show properties for in the dialog.

Detailed Description

A dialog for configuration of the properties of a relationship in a database.

Since
QGIS 3.30

Definition at line 95 of file qgsdbrelationshipwidget.h.

Constructor & Destructor Documentation

◆ QgsDbRelationDialog()

QgsDbRelationDialog::QgsDbRelationDialog ( QgsAbstractDatabaseProviderConnection * connection,
QWidget * parent = nullptr,
Qt::WindowFlags flags = Qt::WindowFlags() )
explicit

Constructor for QgsDbRelationDialog, with the specified parent widget and window flags, for the specified connection.

Ownership of connection is transferred to the widget.

Definition at line 187 of file qgsdbrelationshipwidget.cpp.

Member Function Documentation

◆ accept

void QgsDbRelationDialog::accept ( )
overrideslot

Definition at line 218 of file qgsdbrelationshipwidget.cpp.

◆ relationship()

QgsWeakRelation QgsDbRelationDialog::relationship ( ) const

Returns the relationship as defined in the dialog.

See also
setRelationship()

Definition at line 213 of file qgsdbrelationshipwidget.cpp.

◆ setRelationship()

void QgsDbRelationDialog::setRelationship ( const QgsWeakRelation & relationship)

Sets the current relationship to show properties for in the dialog.

See also
relationship()

Definition at line 208 of file qgsdbrelationshipwidget.cpp.


The documentation for this class was generated from the following files: