patch from sss to make the keyring view a table with item model

This commit is contained in:
csoler 2017-10-08 21:00:15 +02:00
parent d61a5cd5ab
commit c36267f640
5 changed files with 120 additions and 270 deletions

View file

@ -25,6 +25,11 @@
#include "ui_NetworkDialog.h"
#include "RsAutoUpdatePage.h"
#include "gui/NetworkDialog/pgpid_item_model.h"
#include "gui/NetworkDialog/pgpid_item_proxy.h"
//tmp
class QTreeWidgetItem;
class RSTreeWidgetItemCompareRole ;
@ -42,9 +47,8 @@ public:
/** Default Constructor */
NetworkDialog(QWidget *parent = 0);
//void load();
virtual void updateDisplay() ; // overloaded from RsAutoUpdatePage
QColor backgroundColorSelf() const { return mBackgroundColorSelf; }
QColor backgroundColorOwnSign() const { return mBackgroundColorOwnSign; }
QColor backgroundColorAcceptConnection() const { return mBackgroundColorAcceptConnection; }
@ -68,7 +72,7 @@ protected:
private slots:
void removeUnusedKeys() ;
void removeUnusedKeys() ;
void makeFriend() ;
void denyFriend() ;
// void deleteCert() ;
@ -104,10 +108,11 @@ private slots:
// void on_actionTabsTriangular_activated();
void filterColumnChanged(int);
void filterItems(const QString &text);
// void filterItems(const QString &text);
private:
QTreeWidgetItem *getCurrentNeighbour();
// class NetworkView *networkview;
@ -122,6 +127,12 @@ private:
RSTreeWidgetItemCompareRole *compareNetworkRole ;
//iinternal long lived data
std::list<RsPgpId> neighs;
pgpid_item_model *PGPIdItemModel;
pgpid_item_proxy *PGPIdItemProxy;
/** Qt Designer generated object */
Ui::NetworkDialog ui;
};