Skip to content

Commit

Permalink
Correctly expose QgsLayoutItemAttributeTable::getTableContents to sip,
Browse files Browse the repository at this point in the history
so that this class can be reused from Python classes

Fixes gltn/stdm#411

(cherry picked from commit a8c3b02)
  • Loading branch information
nyalldawson committed Jan 13, 2021
1 parent 6c2b26e commit 6bb50f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Expand Up @@ -288,6 +288,15 @@ be replaced by a line break.
.. seealso:: :py:func:`setWrapString`
%End

virtual bool getTableContents( QgsLayoutTableContents &contents );

%Docstring
Queries the attribute table's vector layer for attributes to show in the table.

:param contents: table content

:return: ``True`` if attributes were successfully fetched
%End

virtual QgsConditionalStyle conditionalCellStyle( int row, int column ) const;

Expand Down
3 changes: 1 addition & 2 deletions src/core/layout/qgslayoutitemattributetable.h
Expand Up @@ -275,9 +275,8 @@ class CORE_EXPORT QgsLayoutItemAttributeTable: public QgsLayoutTable
* Queries the attribute table's vector layer for attributes to show in the table.
* \param contents table content
* \returns TRUE if attributes were successfully fetched
* \note not available in Python bindings
*/
bool getTableContents( QgsLayoutTableContents &contents ) override SIP_SKIP;
bool getTableContents( QgsLayoutTableContents &contents ) override;

QgsConditionalStyle conditionalCellStyle( int row, int column ) const override;
QgsExpressionContextScope *scopeForCell( int row, int column ) const override SIP_FACTORY;
Expand Down

0 comments on commit 6bb50f9

Please sign in to comment.