Commit c30c01c0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix sorting keys

parent cbad0775
Pipeline #53503 passed with stage
in 45 minutes and 1 second
......@@ -33,9 +33,6 @@ DKIMManagerKeyWidget::DKIMManagerKeyWidget(QWidget *parent)
mTreeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
mTreeWidget->setSelectionMode(QAbstractItemView::ExtendedSelection);
mTreeWidget->setAlternatingRowColors(true);
mTreeWidget->setSortingEnabled(true);
mTreeWidget->header()->setSortIndicatorShown(true);
mTreeWidget->header()->setSectionsClickable(true);
auto searchLineEdit = new KTreeWidgetSearchLine(this, mTreeWidget);
searchLineEdit->setObjectName(QStringLiteral("searchlineedit"));
......@@ -112,6 +109,10 @@ void DKIMManagerKeyWidget::loadKeys()
item->setText(4, key.lastUsedDateTime.toString());
item->setToolTip(2, key.keyValue);
}
mTreeWidget->setSortingEnabled(true);
mTreeWidget->header()->setSortIndicatorShown(true);
mTreeWidget->header()->setSectionsClickable(true);
mTreeWidget->sortByColumn(0, Qt::AscendingOrder);
}
void DKIMManagerKeyWidget::saveKeys()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment