[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kleopatra/models
From: Marc Mutz <mutz () kde ! org>
Date: 2008-04-08 12:40:41
Message-ID: 1207658441.123158.30755.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 794717 by mutz:
Add setKeys() convenience function
M +5 -0 keylistmodel.cpp
M +1 -0 keylistmodel.h
--- trunk/KDE/kdepim/kleopatra/models/keylistmodel.cpp #794716:794717
@@ -136,6 +136,11 @@
return result;
}
+void AbstractKeyListModel::setKeys( const std::vector<Key> & keys ) {
+ clear();
+ addKeys( keys );
+}
+
QModelIndex AbstractKeyListModel::addKey( const Key & key ) {
const std::vector<Key> vec( 1, key );
const QList<QModelIndex> l = doAddKeys( vec );
--- trunk/KDE/kdepim/kleopatra/models/keylistmodel.h #794716:794717
@@ -89,6 +89,7 @@
void rowMoved( const QModelIndex & new_parent, int new_row );
public Q_SLOTS:
+ void setKeys( const std::vector<GpgME::Key> & keys );
QModelIndex addKey( const GpgME::Key & key );
QList<QModelIndex> addKeys( const std::vector<GpgME::Key> & keys );
void removeKey( const GpgME::Key & key );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic