RetroShare/retroshare-gui/src/gui/NetworkDialog/pgpid_item_proxy.h

22 lines
449 B
C
Raw Normal View History

2017-10-12 15:33:39 -04:00
#ifndef PGPID_ITEM_PROXY_H
#define PGPID_ITEM_PROXY_H
#include <QSortFilterProxyModel>
class pgpid_item_proxy :
public QSortFilterProxyModel
{
Q_OBJECT
public:
pgpid_item_proxy(QObject *parent = nullptr);
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
public slots:
void use_only_trusted_keys(bool val);
private:
bool only_trusted_keys = false;
2017-10-12 15:33:39 -04:00
};
#endif // PGPID_ITEM_PROXY_H