Skip to content
Permalink
Browse files

Correctly expose QgsLayoutItemAttributeTable::getTableContents to sip,

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 ce00ccd30e3e7e8fcc78f8a3fc2943cee8e2d274
@@ -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;

@@ -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;

0 comments on commit ce00ccd

Please sign in to comment.
You can’t perform that action at this time.