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

Make KeyListView navigatable column by column

GnuPG-bug-id: 6103
parent 726e5518
......@@ -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)
: QTreeWidget(parent)
: NavigatableTreeWidget(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(true);
setAllColumnsShowFocus(false);
for (int i = 0; i < numSignalReplacements; ++i) {
connect(this, signalReplacements[i].source, signalReplacements[i].target);
......
......@@ -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 QTreeWidget
class KLEO_EXPORT KeyListView : public NavigatableTreeWidget
{
Q_OBJECT
friend class KeyListViewItem;
......
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