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
libkleo
Commits
b7dcf05f
Commit
b7dcf05f
authored
Jul 28, 2022
by
Ingo Klöcker
Browse files
Make KeyListView navigatable column by column
GnuPG-bug-id: 6103
parent
726e5518
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ui/keylistview.cpp
View file @
b7dcf05f
...
...
@@ -65,7 +65,7 @@ static const struct {
static
const
int
numSignalReplacements
=
sizeof
signalReplacements
/
sizeof
*
signalReplacements
;
KeyListView
::
KeyListView
(
const
ColumnStrategy
*
columnStrategy
,
const
DisplayStrategy
*
displayStrategy
,
QWidget
*
parent
,
Qt
::
WindowFlags
f
)
:
Q
TreeWidget
(
parent
)
:
Navigatable
TreeWidget
(
parent
)
,
mColumnStrategy
(
columnStrategy
)
,
mDisplayStrategy
(
displayStrategy
)
,
mHierarchical
(
false
)
...
...
@@ -90,7 +90,7 @@ KeyListView::KeyListView(const ColumnStrategy *columnStrategy, const DisplayStra
header
()
->
setSectionResizeMode
(
col
,
columnStrategy
->
resizeMode
(
col
));
}
setAllColumnsShowFocus
(
tru
e
);
setAllColumnsShowFocus
(
fals
e
);
for
(
int
i
=
0
;
i
<
numSignalReplacements
;
++
i
)
{
connect
(
this
,
signalReplacements
[
i
].
source
,
signalReplacements
[
i
].
target
);
...
...
src/ui/keylistview.h
View file @
b7dcf05f
...
...
@@ -11,10 +11,11 @@
#include
"kleo_export.h"
#include
"navigatabletreewidget.h"
#include
<QByteArray>
#include
<QHeaderView>
#include
<QIcon>
#include
<QTreeWidget>
#include
<gpgme++/key.h>
...
...
@@ -76,7 +77,7 @@ private:
GpgME
::
Key
mKey
;
};
class
KLEO_EXPORT
KeyListView
:
public
Q
TreeWidget
class
KLEO_EXPORT
KeyListView
:
public
Navigatable
TreeWidget
{
Q_OBJECT
friend
class
KeyListViewItem
;
...
...
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