Commit 95b6ab39 authored by Rolf Eike Beer's avatar Rolf Eike Beer
Browse files

remove some more KeyListView code from Keymanager

svn path=/branches/work/kgpg2/; revision=764418
parent 7fc81a1d
......@@ -1168,19 +1168,6 @@ void KeysManager::slotSetDefaultKey(const QString &newID)
imodel->setDefaultKey(newID);
}
bool KeysManager::isSignature(KeyListViewItem *item)
{
return (item->itemType() & KeyListViewItem::Sign);
}
bool KeysManager::isSignatureUnknown(KeyListViewItem *item)
{
if (!isSignature(item))
return false;
// ugly hack to detect unknown keys
return (item->text(0).startsWith('[') && item->text(0).endsWith(']'));
}
void
KeysManager::slotMenu(const QPoint &pos)
{
......@@ -2039,7 +2026,7 @@ void KeysManager::confirmdeletekey()
for (int i = 0; i < ndlist.count(); ++i) {
KGpgKeyNode *ki = static_cast<KGpgKeyNode *>(ndlist.at(i));
if (ki->getType() & KeyListViewItem::Secret) {
if (ki->getType() & ITYPE_SECRET) {
secList += ki->getNameComment();
} else if (ki->getId() != terminalkey)
keysToDelete += ki->getNameComment();
......
......@@ -108,8 +108,6 @@ public slots:
protected:
void closeEvent(QCloseEvent *e);
bool eventFilter(QObject *, QEvent *e);
bool isSignature(KeyListViewItem *);
bool isSignatureUnknown(KeyListViewItem *);
private slots:
void statusBarTimeout();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment