Skip to content

Commit 2454e56

Browse files
committed
sipify gui attribute table
1 parent f5c3b8a commit 2454e56

19 files changed

+1294
-866
lines changed

python/auto_sip.blacklist

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,6 @@ core/composer/qgspaperitem.sip
4141
core/composer/qgsscalebarstyle.sip
4242
core/composer/qgssingleboxscalebarstyle.sip
4343
core/composer/qgsticksscalebarstyle.sip
44-
gui/attributetable/qgsattributetabledelegate.sip
45-
gui/attributetable/qgsattributetablefiltermodel.sip
46-
gui/attributetable/qgsattributetablemodel.sip
47-
gui/attributetable/qgsattributetableview.sip
48-
gui/attributetable/qgsdualview.sip
49-
gui/attributetable/qgsfeaturelistmodel.sip
50-
gui/attributetable/qgsfeaturelistview.sip
51-
gui/attributetable/qgsfeaturelistviewdelegate.sip
52-
gui/attributetable/qgsfeaturemodel.sip
53-
gui/attributetable/qgsfeatureselectionmodel.sip
54-
gui/attributetable/qgsfieldconditionalformatwidget.sip
55-
gui/attributetable/qgsifeatureselectionmanager.sip
56-
gui/attributetable/qgsorganizetablecolumnsdialog.sip
5744
gui/symbology-ng/qgs25drendererwidget.sip
5845
gui/symbology-ng/qgsarrowsymbollayerwidget.sip
5946
gui/symbology-ng/qgsbrushstylecombobox.sip
Lines changed: 74 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,86 @@
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+
113
class QgsAttributeTableDelegate : QItemDelegate
214
{
3-
%TypeHeaderCode
4-
#include <qgsattributetabledelegate.h>
15+
%Docstring
16+
A delegate item class for QgsAttributeTable (see Qt documentation for
17+
QItemDelegate).
518
%End
6-
QgsVectorLayer *layer( const QAbstractItemModel *model ) const;
719

20+
%TypeHeaderCode
21+
#include "qgsattributetabledelegate.h"
22+
%End
823
public:
9-
/** Constructor
10-
* @param parent parent object
11-
*/
24+
1225
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
4061

4162
void setFeatureSelectionModel( QgsFeatureSelectionModel *featureSelectionModel );
4263

4364
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+
5266
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+
5378
};
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

Comments
 (0)