mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 03:32:36 +00:00
Sort tables by ID in the ascending order initially
This commit is contained in:
parent
402f1ff5d8
commit
29536751f5
@ -276,12 +276,16 @@ CSVWorld::Table::Table (const CSMWorld::UniversalId& id,
|
||||
horizontalHeader()->setResizeMode (QHeaderView::Interactive);
|
||||
#endif
|
||||
verticalHeader()->hide();
|
||||
setSortingEnabled (sorting);
|
||||
setSelectionBehavior (QAbstractItemView::SelectRows);
|
||||
setSelectionMode (QAbstractItemView::ExtendedSelection);
|
||||
|
||||
int columns = mModel->columnCount();
|
||||
setSortingEnabled (sorting);
|
||||
if (sorting)
|
||||
{
|
||||
sortByColumn (mModel->findColumnIndex(CSMWorld::Columns::ColumnId_Id), Qt::AscendingOrder);
|
||||
}
|
||||
|
||||
int columns = mModel->columnCount();
|
||||
for (int i=0; i<columns; ++i)
|
||||
{
|
||||
int flags = mModel->headerData (i, Qt::Horizontal, CSMWorld::ColumnBase::Role_Flags).toInt();
|
||||
|
Loading…
x
Reference in New Issue
Block a user