|
QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
The QgsProviderConnectionComboBox class is a combo box which displays the list of connections registered for a given provider. More...
#include <qgsproviderconnectioncombobox.h>

Public Slots | |
| void | setConnection (const QString &connection) |
| Sets the current connection selected in the combo box. | |
Signals | |
| void | connectionChanged (const QString &connection) |
| Emitted whenever the currently selected connection changes. | |
Public Member Functions | |
| QgsProviderConnectionComboBox (const QString &provider, QWidget *parent=nullptr) | |
| Constructor for QgsProviderConnectionComboBox, for the specified provider. | |
| QgsProviderConnectionComboBox (QWidget *parent=nullptr) | |
| Constructor for QgsProviderConnectionComboBox. | |
| bool | allowEmptyConnection () const |
Returns true if the combobox allows the empty connection ("not set") choice. | |
| QString | currentConnection () const |
| Returns the name of the current connection selected in the combo box. | |
| QString | currentConnectionUri () const |
| Returns the uri of the current connection selected in the combo box. | |
| void | setAllowEmptyConnection (bool allowEmpty) |
| Sets whether an optional empty connection ("not set") option is present in the combobox. | |
| void | setProvider (const QString &provider) |
| Sets the provider to be used. | |
The QgsProviderConnectionComboBox class is a combo box which displays the list of connections registered for a given provider.
Definition at line 50 of file qgsproviderconnectioncombobox.h.
|
explicit |
Constructor for QgsProviderConnectionComboBox, for the specified provider.
Definition at line 19 of file qgsproviderconnectioncombobox.cpp.
|
explicit |
Constructor for QgsProviderConnectionComboBox.
Definition at line 25 of file qgsproviderconnectioncombobox.cpp.
| bool QgsProviderConnectionComboBox::allowEmptyConnection | ( | ) | const |
Returns true if the combobox allows the empty connection ("not set") choice.
Definition at line 65 of file qgsproviderconnectioncombobox.cpp.
|
signal |
Emitted whenever the currently selected connection changes.
| QString QgsProviderConnectionComboBox::currentConnection | ( | ) | const |
Returns the name of the current connection selected in the combo box.
Definition at line 100 of file qgsproviderconnectioncombobox.cpp.
| QString QgsProviderConnectionComboBox::currentConnectionUri | ( | ) | const |
Returns the uri of the current connection selected in the combo box.
Definition at line 111 of file qgsproviderconnectioncombobox.cpp.
| void QgsProviderConnectionComboBox::setAllowEmptyConnection | ( | bool | allowEmpty | ) |
Sets whether an optional empty connection ("not set") option is present in the combobox.
Definition at line 60 of file qgsproviderconnectioncombobox.cpp.
|
slot |
Sets the current connection selected in the combo box.
Definition at line 70 of file qgsproviderconnectioncombobox.cpp.
| void QgsProviderConnectionComboBox::setProvider | ( | const QString & | provider | ) |
Sets the provider to be used.
Definition at line 30 of file qgsproviderconnectioncombobox.cpp.