summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2016-06-28 09:10:47 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-06-28 18:02:53 (GMT)
commitb653010177870f19cbc1fada8c263b1a82912226 (patch)
tree6bf5c991cfe7b7f8cc3f33ae99c4da84451a4b1f
parent6d4973f9e7ec442564af510b968cd513af4419af (diff)
some random cleanups
-rw-r--r--keyservers.cpp2
-rw-r--r--model/kgpgitemmodel.cpp6
-rw-r--r--model/kgpgitemmodel.h2
-rw-r--r--selectsecretkey.h2
4 files changed, 3 insertions, 9 deletions
diff --git a/keyservers.cpp b/keyservers.cpp
index 5f5cb01..a63a872 100644
--- a/keyservers.cpp
+++ b/keyservers.cpp
@@ -200,7 +200,7 @@ void KeyServer::slotSearch()
m_filtermodel.setSourceModel(m_resultmodel);
m_filtermodel.setFilterRegExp(QRegExp());
- m_dialogserver = new QDialog(this );
+ m_dialogserver = new QDialog(this);
m_dialogserver->setWindowTitle(i18n("Import Key From Keyserver"));
QVBoxLayout *mainLayout = new QVBoxLayout(m_dialogserver);
diff --git a/model/kgpgitemmodel.cpp b/model/kgpgitemmodel.cpp
index 159d955..3d531ec 100644
--- a/model/kgpgitemmodel.cpp
+++ b/model/kgpgitemmodel.cpp
@@ -441,12 +441,6 @@ KGpgItemModel::refreshKeys(KGpgKeyNode::List keys)
}
void
-KGpgItemModel::refreshKeys()
-{
- refreshKeyIds(QStringList());
-}
-
-void
KGpgItemModel::refreshKeys(const QStringList &ids)
{
refreshKeyIds(ids);
diff --git a/model/kgpgitemmodel.h b/model/kgpgitemmodel.h
index df5b2d1..1bbddde 100644
--- a/model/kgpgitemmodel.h
+++ b/model/kgpgitemmodel.h
@@ -83,7 +83,7 @@ public Q_SLOTS:
QModelIndex nodeIndex(KGpgNode *node, const int column = 0);
void refreshKey(const QString &id);
void refreshKey(KGpgKeyNode *nd);
- void refreshKeys();
+ inline void refreshKeys() { refreshKeys(QStringList()); }
void refreshKeys(const QStringList &ids);
void refreshKeys(KGpgKeyNode::List keys);
void refreshGroups();
diff --git a/selectsecretkey.h b/selectsecretkey.h
index 297966d..1e2cdc8 100644
--- a/selectsecretkey.h
+++ b/selectsecretkey.h
@@ -11,10 +11,10 @@
#define KGPGSELECTSECRETKEY_H
#include <QDialog>
-#include <QItemSelection>
class QCheckBox;
class QComboBox;
+class QPushButton;
class QTableView;
class KGpgItemModel;