summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <kde@opensource.sf-tec.de>2016-10-21 17:45:00 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-10-21 17:45:00 (GMT)
commita3bc809c075c2d897f6ece5c13ed3f427bbe3b14 (patch)
treeaf742034a787913148d5a6252fc6c4e47804de27
parentd73ddd585d42fdced964197e910b8e3bce2cab06 (diff)
make KGpgItemModel::refreshKey() implementations inline
-rw-r--r--model/kgpgitemmodel.cpp16
-rw-r--r--model/kgpgitemmodel.h9
2 files changed, 6 insertions, 19 deletions
diff --git a/model/kgpgitemmodel.cpp b/model/kgpgitemmodel.cpp
index 37cde75..a6c13da 100644
--- a/model/kgpgitemmodel.cpp
+++ b/model/kgpgitemmodel.cpp
@@ -420,22 +420,6 @@ KGpgItemModel::nodeIndex(KGpgNode *node, const int column)
}
void
-KGpgItemModel::refreshKey(KGpgKeyNode *nd)
-{
- KGpgKeyNode::List nodes;
-
- nodes.append(nd);
-
- refreshKeyIds(nodes);
-}
-
-void
-KGpgItemModel::refreshKey(const QString &id)
-{
- refreshKeyIds(QStringList(id));
-}
-
-void
KGpgItemModel::refreshKeys(KGpgKeyNode::List keys)
{
refreshKeyIds(keys);
diff --git a/model/kgpgitemmodel.h b/model/kgpgitemmodel.h
index 1bbddde..24aede4 100644
--- a/model/kgpgitemmodel.h
+++ b/model/kgpgitemmodel.h
@@ -81,9 +81,12 @@ public Q_SLOTS:
void deleteFromGroup(KGpgGroupNode *group, KGpgGroupMemberNode *member);
void setDefaultKey(KGpgKeyNode *def);
QModelIndex nodeIndex(KGpgNode *node, const int column = 0);
- void refreshKey(const QString &id);
- void refreshKey(KGpgKeyNode *nd);
- inline void refreshKeys() { refreshKeys(QStringList()); }
+ inline void refreshKey(const QString &id)
+ { refreshKeys(QStringList(id)); }
+ inline void refreshKey(KGpgKeyNode *nd)
+ { refreshKeys(KGpgKeyNode::List() << nd); }
+ inline void refreshKeys()
+ { refreshKeys(QStringList()); }
void refreshKeys(const QStringList &ids);
void refreshKeys(KGpgKeyNode::List keys);
void refreshGroups();