1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsfieldproxymodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsFieldProxyModel : QSortFilterProxyModel
{
%Docstring(signature="appended")
The :py:class:`QgsFieldProxyModel` class provides an easy to use model
to display the list of fields of a layer.
%End
%TypeHeaderCode
#include "qgsfieldproxymodel.h"
%End
public:
enum Filter /BaseType=IntEnum/
{
String,
Int,
LongLong,
Double,
Numeric,
Date,
Time,
HideReadOnly,
DateTime,
Binary,
Boolean,
OriginProvider,
AllTypes,
};
typedef QFlags<QgsFieldProxyModel::Filter> Filters;
explicit QgsFieldProxyModel( QObject *parent /TransferThis/ = 0 );
%Docstring
:py:class:`QgsFieldProxModel` creates a proxy model with a
:py:class:`QgsFieldModel` as source model. It can be used to filter the
fields based on their types.
%End
QgsFieldModel *sourceFieldModel();
%Docstring
Returns the :py:class:`QgsFieldModel` used in this QSortFilterProxyModel
%End
QgsFieldProxyModel *setFilters( QgsFieldProxyModel::Filters filters );
%Docstring
Set flags that affect how fields are filtered in the model.
:param filters: are Filter flags
.. seealso:: :py:func:`filters`
%End
const Filters &filters() const;
%Docstring
Returns the filters controlling displayed fields.
.. seealso:: :py:func:`setFilters`
%End
public:
virtual bool filterAcceptsRow( int source_row, const QModelIndex &source_parent ) const;
virtual bool lessThan( const QModelIndex &left, const QModelIndex &right ) const;
};
QFlags<QgsFieldProxyModel::Filter> operator|(QgsFieldProxyModel::Filter f1, QFlags<QgsFieldProxyModel::Filter> f2);
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsfieldproxymodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|