kgpg
selectsecretkey.cpp
Go to the documentation of this file.
27 KgpgSelectSecretKey::KgpgSelectSecretKey(QWidget *parent, KGpgItemModel *model, const int countkey, const bool allowLocal, const bool allowTerminal)
82 m_keyslist->selectionModel()->setCurrentIndex(pidx, QItemSelectionModel::Clear | QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
89 connect(m_keyslist->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(slotSelectionChanged()));
108 return m_proxy->nodeForIndex(m_keyslist->selectionModel()->selectedIndexes().at(0))->getEmail();
KGpgNode * nodeForIndex(const QModelIndex &index) const
Definition: selectkeyproxymodel.cpp:81
Definition: kgpgitemmodel.h:44
QItemSelectionModel * selectionModel() const
void resizeColumnsToContents()
KgpgSelectSecretKey(QWidget *parent, KGpgItemModel *model, const int countkey=0, const bool allowLocal=true, const bool allowTerminal=true)
Constructor.
Definition: selectsecretkey.cpp:27
void setSortingEnabled(bool enable)
void setSelectionBehavior(QAbstractItemView::SelectionBehavior behavior)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
virtual void setModel(QAbstractItemModel *model)
QModelIndexList selectedIndexes() const
bool hasSelection() const
void setKeyModel(KGpgItemModel *)
Definition: selectkeyproxymodel.cpp:37
The abstract base class for all classes representing keyring data.
Definition: KGpgNode.h:42
KGpgKeyNode * findKey(const QString &keyId)
Find a key node with the given id.
Definition: KGpgRootNode.cpp:118
bool isChecked() const
virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const
QModelIndex nodeIndex(KGpgNode *node, const int column=0)
Definition: kgpgitemmodel.cpp:406
void setCurrentIndex(const QModelIndex &index, QFlags< QItemSelectionModel::SelectionFlag > command)
void setWordWrap(bool on)
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.