Skip to content

Commit 28c20cf

Browse files
committedMay 6, 2020
fix dox and layout
1 parent 971d107 commit 28c20cf

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed
 

‎python/core/auto_generated/layout/qgslayouttable.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ Returns a reference to the list of QgsLayoutTableSortColumns shown in the table
491491
%Docstring
492492
Replaces the sorting columns in the table with a specified list of QgsLayoutTableSortColumns.
493493

494-
:param columns: list of QgsLayoutTableColumns used to sort the table.
494+
:param sortColumns: list of QgsLayoutTableColumns used to sort the table.
495495

496496
.. seealso:: :py:func:`sortColumns`
497497

‎src/core/layout/qgslayouttable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ class CORE_EXPORT QgsLayoutTable: public QgsLayoutMultiFrame
456456

457457
/**
458458
* 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.
460460
* \see sortColumns()
461461
* \since QGIS 3.14
462462
*/

‎src/gui/layout/qgslayoutattributeselectiondialog.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,16 @@ class GUI_EXPORT QgsLayoutAttributeTableColumnModelBase: public QAbstractTableMo
6565
ShiftDown //!< Shift the row/column down
6666
};
6767

68+
/**
69+
* Available columns for the configuration table to be used by the model
70+
*/
6871
enum Column
6972
{
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
7578
};
7679

7780
/**

‎tests/src/core/testqgslayouttable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ void TestQgsLayoutTable::testBaseSort()
15941594
table->setDisplayOnlyVisibleFeatures( false );
15951595
table->setMaximumNumberOfFeatures( 1 );
15961596
QgsLayoutTableColumn col;
1597-
col.setAttribute(table->columns()[2].attribute());
1597+
col.setAttribute( table->columns()[2].attribute() );
15981598
col.setSortOrder( Qt::DescendingOrder );
15991599
table->sortColumns() = {col};
16001600
table->refresh();

0 commit comments

Comments
 (0)
Please sign in to comment.