kleopatra
keylistsortfilterproxymodel.cpp
Go to the documentation of this file.
59 AbstractKeyListSortFilterProxyModel::AbstractKeyListSortFilterProxyModel( const AbstractKeyListSortFilterProxyModel & other )
68 setSortRole( Qt::EditRole ); // EditRole can be expected to be in a less formatted way, better for sorting
76 const KeyListModelInterface * const klmi = dynamic_cast<KeyListModelInterface*>( sourceModel() );
84 std::vector<Key> AbstractKeyListSortFilterProxyModel::keys( const QList<QModelIndex> & indexes ) const {
85 const KeyListModelInterface * const klmi = dynamic_cast<KeyListModelInterface*>( sourceModel() );
96 if ( const KeyListModelInterface * const klmi = dynamic_cast<KeyListModelInterface*>( sourceModel() ) )
102 QList<QModelIndex> AbstractKeyListSortFilterProxyModel::indexes( const std::vector<Key> & keys ) const {
103 if ( const KeyListModelInterface * const klmi = dynamic_cast<KeyListModelInterface*>( sourceModel() ) ) {
134 KeyListSortFilterProxyModel::KeyListSortFilterProxyModel( const KeyListSortFilterProxyModel & other )
157 bool KeyListSortFilterProxyModel::filterAcceptsRow( int source_row, const QModelIndex & source_parent ) const {
192 const KeyListModelInterface * const klm = dynamic_cast<KeyListModelInterface*>( sourceModel() );
GpgME::Key key(const QModelIndex &idx) const
Definition: keylistsortfilterproxymodel.cpp:75
~KeyListSortFilterProxyModel()
Definition: keylistsortfilterproxymodel.cpp:140
QModelIndex index(const GpgME::Key &key) const
Definition: keylistsortfilterproxymodel.cpp:95
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
Definition: keylistsortfilterproxymodel.cpp:157
virtual GpgME::Key key(const QModelIndex &idx) const =0
QList< QModelIndex > indexes(const std::vector< GpgME::Key > &keys) const
Definition: keylistsortfilterproxymodel.cpp:102
KeyListSortFilterProxyModel(const KeyListSortFilterProxyModel &)
Definition: keylistsortfilterproxymodel.cpp:134
std::vector< GpgME::Key > keys(const QList< QModelIndex > &indexes) const
Definition: keylistsortfilterproxymodel.cpp:84
KeyListSortFilterProxyModel * clone() const
Definition: keylistsortfilterproxymodel.cpp:142
AbstractKeyListSortFilterProxyModel(const AbstractKeyListSortFilterProxyModel &)
Definition: keylistsortfilterproxymodel.cpp:59
void setKeyFilter(const boost::shared_ptr< const KeyFilter > &kf)
Definition: keylistsortfilterproxymodel.cpp:150
virtual std::vector< GpgME::Key > keys(const QList< QModelIndex > &idxs) const =0
~AbstractKeyListSortFilterProxyModel()
Definition: keylistsortfilterproxymodel.cpp:73
boost::shared_ptr< const KeyFilter > keyFilter() const
Definition: keylistsortfilterproxymodel.cpp:146
Definition: commands/command.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.