File: qgssingleitemmodel.sip.in

package info (click to toggle)
qgis 3.40.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,183,800 kB
  • sloc: cpp: 1,595,841; python: 372,637; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 154
file content (72 lines) | stat: -rw-r--r-- 2,892 bytes parent folder | download | duplicates (14)
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
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/qgssingleitemmodel.h                                        *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/



class QgsSingleItemModel: QAbstractItemModel
{
%Docstring(signature="appended")
A :py:class:`QgsSingleItemModel` subclass which contains a single
read-only item.

.. versionadded:: 3.26
%End

%TypeHeaderCode
#include "qgssingleitemmodel.h"
%End
  public:

    explicit QgsSingleItemModel( QObject *parent /TransferThis/ = 0, const QString &text = QString(),
                                 const QMap< int, QVariant > &data = QMap< int, QVariant >(), Qt::ItemFlags flags = Qt::NoItemFlags );
%Docstring
Constructor for QgsSingleItemModel with the specified ``parent`` object
and display ``text``.

The ``data`` map specifies the data which should be returned for the
specified roles, where map keys are Qt item roles.

Custom ``flags`` can also be specified for the item.
%End

    explicit QgsSingleItemModel( QObject *parent /TransferThis/,
                                 const QList< QMap< int, QVariant > > &columnData,
                                 Qt::ItemFlags flags = Qt::NoItemFlags );
%Docstring
Constructor for a multi-column QgsSingleItemModel with the specified
``parent`` object.

The ``columnData`` list specifies the data which should be returned for
the specified roles for each column in the model, where each entry in
the list must be a QMap of Qt item role to value.

Custom ``flags`` can also be specified for the item.
%End

    virtual QVariant data( const QModelIndex &index, int role ) const;

    virtual Qt::ItemFlags flags( const QModelIndex &index ) const;

     virtual QModelIndex index( int row, int column,
                       const QModelIndex &parent = QModelIndex() ) const;
    virtual QModelIndex parent( const QModelIndex &index ) const;

    virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;

    virtual int columnCount( const QModelIndex &parent = QModelIndex() ) const;


};

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/qgssingleitemmodel.h                                        *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/