QGIS/python/core/auto_generated/qgsfieldproxymodel.sip.in

86 lines
2.5 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsfieldproxymodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsFieldProxyModel : QSortFilterProxyModel
{
%Docstring
The QgsFieldProxyModel class provides an easy to use model to display the list of fields of a layer.
2017-12-15 10:36:55 -04:00
.. versionadded:: 2.3
%End
%TypeHeaderCode
#include "qgsfieldproxymodel.h"
%End
public:
enum Filter
{
String,
Int,
LongLong,
Double,
Numeric,
Date,
Time,
HideReadOnly,
AllTypes,
};
typedef QFlags<QgsFieldProxyModel::Filter> Filters;
2017-04-20 13:48:50 +02:00
explicit QgsFieldProxyModel( QObject *parent /TransferThis/ = 0 );
%Docstring
QgsFieldProxModel creates a proxy model with a QgsFieldModel as source model.
2017-12-15 10:36:55 -04:00
It can be used to filter the fields based on their types.
%End
QgsFieldModel *sourceFieldModel();
%Docstring
Returns the QgsFieldModel used in this QSortFilterProxyModel
%End
QgsFieldProxyModel *setFilters( QgsFieldProxyModel::Filters filters );
%Docstring
2017-12-15 10:36:55 -04:00
Set flags that affect how fields are filtered in the model.
2017-12-15 21:36:08 -04:00
:param filters: are Filter flags
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`filters`
%End
const Filters &filters() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the filters controlling displayed fields.
.. seealso:: :py:func:`setFilters`
%End
public:
virtual bool filterAcceptsRow( int source_row, const QModelIndex &source_parent ) const;
2017-04-20 13:48:50 +02:00
virtual bool lessThan( const QModelIndex &left, const QModelIndex &right ) const;
2017-04-20 13:48:50 +02:00
};
QFlags<QgsFieldProxyModel::Filter> operator|(QgsFieldProxyModel::Filter f1, QFlags<QgsFieldProxyModel::Filter> f2);
2017-04-20 13:48:50 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsfieldproxymodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/