Skip to content
Permalink
Browse files

fix dox and layout

  • Loading branch information
3nids committed May 6, 2020
1 parent 971d107 commit 28c20cf1d65d87af851dbbb3f552d4de3698bd51
@@ -491,7 +491,7 @@ Returns a reference to the list of QgsLayoutTableSortColumns shown in the table
%Docstring
Replaces the sorting columns in the table with a specified list of QgsLayoutTableSortColumns.

:param columns: list of QgsLayoutTableColumns used to sort the table.
:param sortColumns: list of QgsLayoutTableColumns used to sort the table.

.. seealso:: :py:func:`sortColumns`

@@ -456,7 +456,7 @@ class CORE_EXPORT QgsLayoutTable: public QgsLayoutMultiFrame

/**
* Replaces the sorting columns in the table with a specified list of QgsLayoutTableSortColumns.
* \param columns list of QgsLayoutTableColumns used to sort the table.
* \param sortColumns list of QgsLayoutTableColumns used to sort the table.
* \see sortColumns()
* \since QGIS 3.14
*/
@@ -65,13 +65,16 @@ class GUI_EXPORT QgsLayoutAttributeTableColumnModelBase: public QAbstractTableMo
ShiftDown //!< Shift the row/column down
};

/**
* Available columns for the configuration table to be used by the model
*/
enum Column
{
Attribute,
Heading,
Alignment,
Width,
SortOrder
Attribute, //!< Attribute for a field or an expression
Heading, //!< Defines the title of the column
Alignment, //!< Defines the alignment of the column
Width, //!< Defines the width of the column
SortOrder //!< Defines the sort order
};

/**
@@ -1594,7 +1594,7 @@ void TestQgsLayoutTable::testBaseSort()
table->setDisplayOnlyVisibleFeatures( false );
table->setMaximumNumberOfFeatures( 1 );
QgsLayoutTableColumn col;
col.setAttribute(table->columns()[2].attribute());
col.setAttribute( table->columns()[2].attribute() );
col.setSortOrder( Qt::DescendingOrder );
table->sortColumns() = {col};
table->refresh();

0 comments on commit 28c20cf

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