kgpg
selectkeyproxymodel.cpp
Go to the documentation of this file.
182 SelectSecretKeyProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
187 return ((l->getType() == ITYPE_PAIR) && !(l->getTrust() == TRUST_EXPIRED) && !(l->getTrust() == TRUST_DISABLED));
void invalidate()
KGpgNode * nodeForIndex(const QModelIndex &index) const
Definition: selectkeyproxymodel.cpp:81
Definition: kgpgitemmodel.h:44
virtual void setSourceModel(QAbstractItemModel *sourceModel)
filter model to select a public key for encryption
Definition: selectkeyproxymodel.h:30
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
Definition: selectkeyproxymodel.cpp:182
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: selectkeyproxymodel.cpp:93
SelectKeyProxyModel(QObject *parent)
Definition: selectkeyproxymodel.cpp:29
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: selectkeyproxymodel.cpp:197
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: selectkeyproxymodel.cpp:209
virtual int rowCount(const QModelIndex &parent) const
bool showUntrusted() const
virtual KgpgCore::KgpgItemType getType() const =0
Returns the item type of this object.
bool isValid() const
SelectSecretKeyProxyModel(QObject *parent)
Definition: selectkeyproxymodel.cpp:176
bool canEncrypt() const
return if this key can be used for encryption
Definition: KGpgKeyNode.cpp:355
virtual bool hasChildren(const QModelIndex &parent) const
Definition: selectkeyproxymodel.cpp:241
void setKeyModel(KGpgItemModel *)
Definition: selectkeyproxymodel.cpp:37
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: kgpgitemmodel.cpp:44
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: kgpgitemmodel.cpp:95
void setShowUntrusted(const bool b)
Definition: selectkeyproxymodel.cpp:170
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
Definition: selectkeyproxymodel.cpp:44
QString right(int n) const
void setCaseSensitivity(Qt::CaseSensitivity cs)
The abstract base class for all classes representing keyring data.
Definition: KGpgNode.h:42
bool contains(QChar ch, Qt::CaseSensitivity cs) const
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: kgpgitemmodel.cpp:363
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const
QDate date() const
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: selectkeyproxymodel.cpp:105
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: selectkeyproxymodel.cpp:249
int column() const
KGpgNode * nodeForIndex(const QModelIndex &index) const
Definition: kgpgitemmodel.cpp:230
this key has highest possible level of trust (e.g. your own secret keys)
Definition: kgpgkey.h:64
virtual int columnCount(const QModelIndex &) const
Definition: selectkeyproxymodel.cpp:87
virtual bool hasChildren(const QModelIndex &parent) const
Definition: selectkeyproxymodel.cpp:132
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: selectkeyproxymodel.cpp:140
virtual int columnCount(const QModelIndex &) const
Definition: selectkeyproxymodel.cpp:191
QRegExp filterRegExp() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.