16#ifndef QGSDATABASESCHEMAMODEL_H
17#define QGSDATABASESCHEMAMODEL_H
19#include <QAbstractItemModel>
20#include <QSortFilterProxyModel>
79 QModelIndex parent(
const QModelIndex &child )
const override;
80 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
81 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
82 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
83 QModelIndex index(
int row,
int column,
const QModelIndex &parent )
const override;
89 void setAllowEmptySchema(
bool allowEmpty );
106 std::unique_ptr< QgsAbstractDatabaseProviderConnection > mConnection;
107 QStringList mSchemas;
108 bool mAllowEmpty =
false;
The QgsAbstractDatabaseProviderConnection class provides common functionality for DB based connection...
A model containing schemas from a database connection.
CustomRole
Custom model roles.
bool allowEmptySchema() const
Returns true if the model allows the empty schema ("not set") choice.
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)