File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed
python/core/auto_generated/layout Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ Returns a reference to the list of QgsLayoutTableSortColumns shown in the table
491
491
%Docstring
492
492
Replaces the sorting columns in the table with a specified list of QgsLayoutTableSortColumns.
493
493
494
- :param columns : list of QgsLayoutTableColumns used to sort the table.
494
+ :param sortColumns : list of QgsLayoutTableColumns used to sort the table.
495
495
496
496
.. seealso:: :py:func:`sortColumns`
497
497
Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ class CORE_EXPORT QgsLayoutTable: public QgsLayoutMultiFrame
456
456
457
457
/* *
458
458
* Replaces the sorting columns in the table with a specified list of QgsLayoutTableSortColumns.
459
- * \param columns list of QgsLayoutTableColumns used to sort the table.
459
+ * \param sortColumns list of QgsLayoutTableColumns used to sort the table.
460
460
* \see sortColumns()
461
461
* \since QGIS 3.14
462
462
*/
Original file line number Diff line number Diff line change @@ -65,13 +65,16 @@ class GUI_EXPORT QgsLayoutAttributeTableColumnModelBase: public QAbstractTableMo
65
65
ShiftDown // !< Shift the row/column down
66
66
};
67
67
68
+ /* *
69
+ * Available columns for the configuration table to be used by the model
70
+ */
68
71
enum Column
69
72
{
70
- Attribute,
71
- Heading,
72
- Alignment,
73
- Width,
74
- SortOrder
73
+ Attribute, // !< Attribute for a field or an expression
74
+ Heading, // !< Defines the title of the column
75
+ Alignment, // !< Defines the alignment of the column
76
+ Width, // !< Defines the width of the column
77
+ SortOrder // !< Defines the sort order
75
78
};
76
79
77
80
/* *
Original file line number Diff line number Diff line change @@ -1594,7 +1594,7 @@ void TestQgsLayoutTable::testBaseSort()
1594
1594
table->setDisplayOnlyVisibleFeatures ( false );
1595
1595
table->setMaximumNumberOfFeatures ( 1 );
1596
1596
QgsLayoutTableColumn col;
1597
- col.setAttribute (table->columns ()[2 ].attribute ());
1597
+ col.setAttribute ( table->columns ()[2 ].attribute () );
1598
1598
col.setSortOrder ( Qt::DescendingOrder );
1599
1599
table->sortColumns () = {col};
1600
1600
table->refresh ();
You can’t perform that action at this time.
0 commit comments