16 #ifndef QGSABSTRACTDBTABLEMODEL_H
17 #define QGSABSTRACTDBTABLEMODEL_H
19 #include "qgis_core.h"
21 #include <QStandardItemModel>
34 : QStandardItemModel( parent )
47 virtual void setSql(
const QModelIndex &index,
const QString &sql ) = 0;
The QgsAbstractDbTableModel class is a pure virtual model class for results in a database source widg...
virtual void setSql(const QModelIndex &index, const QString &sql)=0
Sets an sql statement that belongs to a cell specified by a model index.
virtual bool searchableColumn(int column) const
Returns if the column should be searchable at the given index.
virtual int defaultSearchColumn() const =0
Returns the index of the column used by default to filter the results (probably the table name column...
QgsAbstractDbTableModel(QObject *parent=nullptr)
Constructor.
virtual QStringList columns() const =0
Returns the list of columns in the table.