Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kleopatra
Commits
4418eff2
Commit
4418eff2
authored
Jul 28, 2022
by
Ingo Klöcker
Browse files
Make certifications tree view navigatable column by column
GnuPG-bug-id: 6102
parent
e649ec6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
4418eff2
...
...
@@ -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.4
3
"
)
set
(
LIBKLEO_VERSION
"5.21.4
4
"
)
set
(
QT_REQUIRED_VERSION
"5.15.2"
)
set
(
GPGME_REQUIRED_VERSION
"1.16.0"
)
...
...
src/dialogs/weboftrustwidget.cpp
View file @
4418eff2
...
...
@@ -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
;
Q
TreeView
*
certificationsTV
=
nullptr
;
Navigatable
TreeView
*
certificationsTV
=
nullptr
;
public:
Private
(
WebOfTrustWidget
*
qq
)
...
...
@@ -51,9 +51,9 @@ public:
{
certificationsModel
.
enableRemarks
(
Tags
::
tagsEnabled
());
certificationsTV
=
new
Q
TreeView
;
certificationsTV
=
new
Navigatable
TreeView
{
q
}
;
certificationsTV
->
setModel
(
&
certificationsModel
);
certificationsTV
->
setAllColumnsShowFocus
(
tru
e
);
certificationsTV
->
setAllColumnsShowFocus
(
fals
e
);
certificationsTV
->
setSelectionMode
(
QAbstractItemView
::
ExtendedSelection
);
if
(
!
Tags
::
tagsEnabled
())
{
certificationsTV
->
hideColumn
(
static_cast
<
int
>
(
UserIDListModel
::
Column
::
Tags
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment