diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-12-28 23:21:31 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-12-28 23:21:31 +0000 |
commit | 16c2bf04415fe301dd7c01dd8167f1ab432ba343 (patch) | |
tree | 4a75ddfa75436d9834f31427638329f41de354cc /keylist.cpp | |
parent | add GPG4USB_NON_PORTABLE flag, which could be used to build non portable app ... (diff) | |
download | gpg4usb-16c2bf04415fe301dd7c01dd8167f1ab432ba343.tar.gz gpg4usb-16c2bf04415fe301dd7c01dd8167f1ab432ba343.zip |
also show importdetaildialog when dropping key on keylist
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@714 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keylist.cpp')
-rw-r--r-- | keylist.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/keylist.cpp b/keylist.cpp index 49dcab6..8dc5281 100644 --- a/keylist.cpp +++ b/keylist.cpp @@ -235,11 +235,11 @@ void KeyList::dropEvent(QDropEvent* event) qDebug() << tr("Couldn't Open File: ") + tmp.toString(); } QByteArray inBuffer = file.readAll(); - mCtx->importKey(inBuffer); + this->importKeys(inBuffer); } } else { QByteArray inBuffer(event->mimeData()->text().toUtf8()); - mCtx->importKey(inBuffer); + this->importKeys(inBuffer); } } @@ -251,8 +251,15 @@ void KeyList::dragEnterEvent(QDragEnterEvent *event) /** set background color for Keys and put them to top * */ -void KeyList::markKeys(QStringList *keyIds) { +void KeyList::markKeys(QStringList *keyIds) +{ foreach(QString id, *keyIds) { qDebug() << "marked: " << id; } } + +void KeyList::importKeys(QByteArray inBuffer) +{ + GpgImportInformation result = mCtx->importKey(inBuffer); + new KeyImportDetailDialog(mCtx, result, this); +} |