16 #ifndef QGSDATABASESCHEMAMODEL_H
17 #define QGSDATABASESCHEMAMODEL_H
19 #include <QAbstractItemModel>
20 #include <QSortFilterProxyModel>
21 #include <QStringList>
24 #include "qgis_core.h"
51 RoleEmpty = Qt::UserRole,
70 QModelIndex parent(
const QModelIndex &child )
const override;
71 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
72 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
73 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
74 QModelIndex index(
int row,
int column,
const QModelIndex &parent )
const override;
80 void setAllowEmptySchema(
bool allowEmpty );
97 std::unique_ptr< QgsAbstractDatabaseProviderConnection > mConnection;
99 bool mAllowEmpty =
false;
The QgsAbstractDatabaseProviderConnection class provides common functionality for DB based connection...
A model containing schemas from a database connection.
bool allowEmptySchema() const
Returns true if the model allows the empty schema ("not set") choice.