Commit 4418eff2 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Make certifications tree view navigatable column by column

GnuPG-bug-id: 6102
parent e649ec6c
......@@ -34,7 +34,7 @@ set(KF5_MIN_VERSION "5.96.0")
set(KIDENTITYMANAGEMENT_VERSION "5.20.40")
set(KMAILTRANSPORT_VERSION "5.20.40")
set(KMIME_VERSION "5.20.40")
set(LIBKLEO_VERSION "5.21.43")
set(LIBKLEO_VERSION "5.21.44")
set(QT_REQUIRED_VERSION "5.15.2")
set(GPGME_REQUIRED_VERSION "1.16.0")
......
......@@ -14,6 +14,7 @@
#include "utils/tags.h"
#include <Libkleo/KeyCache>
#include <Libkleo/NavigatableTreeView>
#include <Libkleo/UserIDListModel>
#include <KLocalizedString>
......@@ -21,7 +22,6 @@
#include <QHeaderView>
#include <QMenu>
#include <QTreeView>
#include <QVBoxLayout>
#include <QGpgME/KeyListJob>
......@@ -43,7 +43,7 @@ private:
GpgME::Key key;
UserIDListModel certificationsModel;
QGpgME::KeyListJob *keyListJob = nullptr;
QTreeView *certificationsTV = nullptr;
NavigatableTreeView *certificationsTV = nullptr;
public:
Private(WebOfTrustWidget *qq)
......@@ -51,9 +51,9 @@ public:
{
certificationsModel.enableRemarks(Tags::tagsEnabled());
certificationsTV = new QTreeView;
certificationsTV = new NavigatableTreeView{q};
certificationsTV->setModel(&certificationsModel);
certificationsTV->setAllColumnsShowFocus(true);
certificationsTV->setAllColumnsShowFocus(false);
certificationsTV->setSelectionMode(QAbstractItemView::ExtendedSelection);
if (!Tags::tagsEnabled()) {
certificationsTV->hideColumn(static_cast<int>(UserIDListModel::Column::Tags));
......
Supports Markdown
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