summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <kde@opensource.sf-tec.de>2016-10-21 18:14:21 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-10-21 18:14:21 (GMT)
commitc736296b6d5709e7652a10babfa1ec5f4f55c025 (patch)
tree52c30653ec4d2007dcf1a6906babc144e3d69808
parentf8d02bcb5768d58686110689030686afbc496c4e (diff)
remove KeysManager::refreshKeys()
This only relays to KGpgItemModel::refreshKeys(), which is also available to KgpgEdit, which was the only caller.
-rw-r--r--editor/kgpgeditor.cpp4
-rw-r--r--editor/kgpgeditor.h2
-rw-r--r--keysmanager.cpp5
-rw-r--r--keysmanager.h1
4 files changed, 3 insertions, 9 deletions
diff --git a/editor/kgpgeditor.cpp b/editor/kgpgeditor.cpp
index 5c10f3b..14f5577 100644
--- a/editor/kgpgeditor.cpp
+++ b/editor/kgpgeditor.cpp
@@ -720,9 +720,9 @@ void KgpgEditor::importSignatureKey(const QString &id, const QString &fileName)
ks->startImport(QStringList(id), QString(),QLatin1String( qgetenv("http_proxy") ));
}
-void KgpgEditor::slotDownloadKeysFinished(QStringList ids)
+void KgpgEditor::slotDownloadKeysFinished(const QStringList &ids)
{
- m_parent->refreshKeys(ids);
+ m_model->refreshKeys(ids);
sender()->deleteLater();
}
diff --git a/editor/kgpgeditor.h b/editor/kgpgeditor.h
index bc2b8a2..0aac60b 100644
--- a/editor/kgpgeditor.h
+++ b/editor/kgpgeditor.h
@@ -110,7 +110,7 @@ private slots:
void slotLibraryDone();
- void slotDownloadKeysFinished(QStringList ids);
+ void slotDownloadKeysFinished(const QStringList &ids);
private:
QString m_textencoding;
diff --git a/keysmanager.cpp b/keysmanager.cpp
index 061fee9..41bb9c5 100644
--- a/keysmanager.cpp
+++ b/keysmanager.cpp
@@ -2188,11 +2188,6 @@ void KeysManager::importRemoteFinished(int result)
imodel->refreshKeys(keys);
}
-void KeysManager::refreshKeys(const QStringList& ids)
-{
- imodel->refreshKeys(ids);
-}
-
void KeysManager::delsignkey()
{
KGpgNode *nd = iview->selectedNode();
diff --git a/keysmanager.h b/keysmanager.h
index 6ea1f2b..a9114e1 100644
--- a/keysmanager.h
+++ b/keysmanager.h
@@ -120,7 +120,6 @@ public slots:
void clipDecrypt();
void clipSign();
void slotImportDone(int ret);
- void refreshKeys(const QStringList &ids);
protected:
bool eventFilter(QObject *, QEvent *e);