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 7baa0a1 commit ce00ccd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Expand Up @@ -289,6 +289,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 QgsExpressionContext createExpressionContext() const;

Expand Down
3 changes: 1 addition & 2 deletions src/core/layout/qgslayoutitemattributetable.h
Expand Up @@ -284,9 +284,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;

QgsExpressionContext createExpressionContext() const override;
void finalizeRestoreFromXml() override;
Expand Down

0 comments on commit ce00ccd

Please sign in to comment.