|
| 1 | +/************************************************************************ |
| 2 | + * This file has been generated automatically from * |
| 3 | + * * |
| 4 | + * src/gui/attributetable/qgsattributetabledelegate.h * |
| 5 | + * * |
| 6 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 7 | + ************************************************************************/ |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
1 | 13 | class QgsAttributeTableDelegate : QItemDelegate |
2 | 14 | { |
3 | | -%TypeHeaderCode |
4 | | -#include <qgsattributetabledelegate.h> |
| 15 | +%Docstring |
| 16 | + A delegate item class for QgsAttributeTable (see Qt documentation for |
| 17 | + QItemDelegate). |
5 | 18 | %End |
6 | | - QgsVectorLayer *layer( const QAbstractItemModel *model ) const; |
7 | 19 |
|
| 20 | +%TypeHeaderCode |
| 21 | +#include "qgsattributetabledelegate.h" |
| 22 | +%End |
8 | 23 | public: |
9 | | - /** Constructor |
10 | | - * @param parent parent object |
11 | | - */ |
| 24 | + |
12 | 25 | QgsAttributeTableDelegate( QObject *parent /TransferThis/ = 0 ); |
13 | | - /** Used to create an editor for when the user tries to |
14 | | - * change the contents of a cell */ |
15 | | - QWidget * createEditor( |
16 | | - QWidget *parent, |
17 | | - const QStyleOptionViewItem &option, |
18 | | - const QModelIndex &index ) const; |
19 | | - |
20 | | - /** Overloads the paint method form the QItemDelegate bas class */ |
21 | | - void paint( |
22 | | - QPainter * painter, |
23 | | - const QStyleOptionViewItem & option, |
24 | | - const QModelIndex &index ) const; |
25 | | - |
26 | | - /** |
27 | | - * Sets data from editor back to model. Overloads default method |
28 | | - * @param editor editor which was created by create editor function in this class |
29 | | - * @param model model where data should be updated |
30 | | - * @param index index of field which is to be modified |
31 | | - */ |
32 | | - void setModelData( QWidget *editor, QAbstractItemModel *model, const QModelIndex &index ) const; |
33 | | - |
34 | | - /** |
35 | | - * Sets data from model into the editor. Overloads default method |
36 | | - * @param editor editor which was created by create editor function in this class |
37 | | - * @param index index of field which is to be retrieved |
38 | | - */ |
39 | | - void setEditorData( QWidget *editor, const QModelIndex &index ) const; |
| 26 | +%Docstring |
| 27 | + Constructor |
| 28 | + \param parent parent object |
| 29 | +%End |
| 30 | + |
| 31 | + virtual QWidget *createEditor( QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index ) const; |
| 32 | + |
| 33 | +%Docstring |
| 34 | + Used to create an editor for when the user tries to |
| 35 | + change the contents of a cell |
| 36 | + :rtype: QWidget |
| 37 | +%End |
| 38 | + |
| 39 | + virtual void paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const; |
| 40 | + |
| 41 | +%Docstring |
| 42 | + Overloads the paint method form the QItemDelegate base class |
| 43 | +%End |
| 44 | + |
| 45 | + virtual void setModelData( QWidget *editor, QAbstractItemModel *model, const QModelIndex &index ) const; |
| 46 | + |
| 47 | +%Docstring |
| 48 | + Sets data from editor back to model. Overloads default method |
| 49 | + \param editor editor which was created by create editor function in this class |
| 50 | + \param model model where data should be updated |
| 51 | + \param index index of field which is to be modified |
| 52 | +%End |
| 53 | + |
| 54 | + virtual void setEditorData( QWidget *editor, const QModelIndex &index ) const; |
| 55 | + |
| 56 | +%Docstring |
| 57 | + Sets data from model into the editor. Overloads default method |
| 58 | + \param editor editor which was created by create editor function in this class |
| 59 | + \param index index of field which is to be retrieved |
| 60 | +%End |
40 | 61 |
|
41 | 62 | void setFeatureSelectionModel( QgsFeatureSelectionModel *featureSelectionModel ); |
42 | 63 |
|
43 | 64 | signals: |
44 | | - /** |
45 | | - * Is emitted when an action column item is painted. |
46 | | - * The consumer of this signal can initialize the index widget. |
47 | | - * |
48 | | - * @note This signal is emitted repeatedly whenever the item is being painted. |
49 | | - * It is the consumers responsibility to check if initialization has already |
50 | | - * happened before. |
51 | | - */ |
| 65 | + |
52 | 66 | void actionColumnItemPainted( const QModelIndex &index ) const; |
| 67 | +%Docstring |
| 68 | + Is emitted when an action column item is painted. |
| 69 | + The consumer of this signal can initialize the index widget. |
| 70 | + |
| 71 | +.. note:: |
| 72 | + |
| 73 | + This signal is emitted repeatedly whenever the item is being painted. |
| 74 | + It is the consumers responsibility to check if initialization has already |
| 75 | + happened before. |
| 76 | +%End |
| 77 | + |
53 | 78 | }; |
| 79 | + |
| 80 | +/************************************************************************ |
| 81 | + * This file has been generated automatically from * |
| 82 | + * * |
| 83 | + * src/gui/attributetable/qgsattributetabledelegate.h * |
| 84 | + * * |
| 85 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 86 | + ************************************************************************/ |
0 commit comments