16#ifndef QGSPROVIDERCONNECTIONMODEL_H
17#define QGSPROVIDERCONNECTIONMODEL_H
19#include <QAbstractItemModel>
20#include <QSortFilterProxyModel>
74 void setAllowEmptyConnection(
bool allowEmpty );
83 QModelIndex parent(
const QModelIndex &child )
const override;
84 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
85 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
86 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
87 QModelIndex index(
int row,
int column,
const QModelIndex &parent )
const override;
89 void removeConnection(
const QString &connection );
90 void addConnection(
const QString &connection );
95 QStringList mConnections;
96 bool mAllowEmpty =
false;
A model containing registered connection names for a specific data provider.
bool allowEmptyConnection() const
Returns true if the model allows the empty connection ("not set") choice.
CustomRole
Custom model roles.
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)