kleopatra
keytreeview.cpp
Go to the documentation of this file.
105 KeyTreeView::KeyTreeView( const QString & text, const shared_ptr<KeyFilter> & kf, AbstractKeyListSortFilterProxyModel * proxy, QWidget * parent )
124 assert( qobject_cast<HeaderView*>( m_view->header() ) == static_cast<HeaderView*>( m_view->header() ) );
149 assert( qobject_cast<HeaderView*>( m_view->header() ) == static_cast<HeaderView*>( m_view->header() ) );
200 while ( QAbstractProxyModel * const sm = qobject_cast<QAbstractProxyModel*>( pm->sourceModel() ) )
223 m_view->header()->resizeSection( column, qMax( m_view->header()->sectionSize( column ), m_view->header()->sectionSizeHint( column ) ) );
244 static QItemSelection itemSelectionFromKeys( const std::vector<Key> & keys, const KeyListSortFilterProxyModel & proxy ) {
255 m_view->selectionModel()->select( itemSelectionFromKeys( keys, *m_proxy ), QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows );
273 const std::vector<Key> selectedKeys = m_proxy->keys( m_view->selectionModel()->selectedRows() );
284 m_view->selectionModel()->setCurrentIndex( m_proxy->index( currentKey ), QItemSelectionModel::NoUpdate );
354 kdtools::for_each( sorted, boost::bind( &AbstractKeyListModel::removeKey, m_hierarchicalModel, _1 ) );
bool connectSearchBar(const QObject *bar)
Definition: keytreeview.cpp:376
GpgME::Key key(const QModelIndex &idx) const
Definition: keylistsortfilterproxymodel.cpp:75
void addKeysUnselected(const std::vector< GpgME::Key > &keys)
Definition: keytreeview.cpp:333
QModelIndex index(const GpgME::Key &key) const
Definition: keylistsortfilterproxymodel.cpp:95
Definition: keytreeview.h:54
void stringFilterChanged(const QString &filter)
void disconnectSearchBar(const QObject *bar)
Definition: keytreeview.cpp:369
void selectKeys(const std::vector< GpgME::Key > &keys)
Definition: keytreeview.cpp:254
Definition: headerview.h:44
void setSortColumn(int sortColumn, Qt::SortOrder sortOrder)
Definition: keytreeview.cpp:129
void addKeysSelected(const std::vector< GpgME::Key > &keys)
Definition: keytreeview.cpp:329
void setFlatModel(AbstractKeyListModel *model)
Definition: keytreeview.cpp:205
void setColumnSizes(const std::vector< int > &sizes)
Definition: keytreeview.cpp:119
void remove_duplicates_by_fpr(T &t)
Definition: predicates.h:114
QList< QModelIndex > addKeys(const std::vector< GpgME::Key > &keys)
Definition: keylistmodel.cpp:229
void setHierarchicalModel(AbstractKeyListModel *model)
Definition: keytreeview.cpp:214
std::vector< GpgME::Key > keys(const QList< QModelIndex > &indexes) const
Definition: keylistsortfilterproxymodel.cpp:84
Definition: keylistmodel.h:49
std::vector< GpgME::Key > selectedKeys() const
Definition: keytreeview.cpp:258
void setKeyFilter(const boost::shared_ptr< const KeyFilter > &kf)
Definition: keylistsortfilterproxymodel.cpp:150
static QAbstractProxyModel * find_last_proxy(QAbstractProxyModel *pm)
Definition: keytreeview.cpp:198
AbstractKeyListModel * hierarchicalModel() const
Definition: keytreeview.h:67
static const struct @14 connections[]
std::vector< int > columnSizes() const
Definition: keytreeview.cpp:146
void removeKey(const GpgME::Key &key)
Definition: keylistmodel.cpp:222
virtual void setHierarchicalView(bool on)
Definition: keytreeview.cpp:262
static QItemSelection itemSelectionFromKeys(const std::vector< Key > &keys, const KeyListSortFilterProxyModel &proxy)
Definition: keytreeview.cpp:244
void removeKeys(const std::vector< GpgME::Key > &keys)
Definition: keytreeview.cpp:337
virtual void setKeyFilter(const boost::shared_ptr< Kleo::KeyFilter > &filter)
Definition: keytreeview.cpp:236
void keyFilterChanged(const boost::shared_ptr< Kleo::KeyFilter > &filter)
void setKeys(const std::vector< GpgME::Key > &keys)
Definition: keylistmodel.cpp:211
void setKeys(const std::vector< GpgME::Key > &keys)
Definition: keytreeview.cpp:291
void hierarchicalChanged(bool on)
virtual void setStringFilter(const QString &text)
Definition: keytreeview.cpp:228
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.