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
  • Loading branch information
nyalldawson committed Jan 13, 2021
1 parent bc3a55a commit a8c3b02cddbce1f13eb99d4cca9bfa93981d7e19
@@ -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;

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

0 comments on commit a8c3b02

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