16#ifndef QGSABSTRACTDBTABLEMODEL_H 
   17#define QGSABSTRACTDBTABLEMODEL_H 
   21#include <QStandardItemModel> 
   34      : QStandardItemModel( parent )
 
 
   47    virtual void setSql( 
const QModelIndex &index, 
const QString &sql ) = 0;
 
 
Pure virtual model class for results in a database source widget selector.
 
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.