diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-12-28 02:56:54 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-12-28 02:56:54 +0000 |
commit | 4ee66ea9656e8e778baab227d381fa526b8e22db (patch) | |
tree | 5ca232b1df1cdbb001b0a1d13472499f32bd5784 /textedit.cpp | |
parent | removed qdebugs and text in textedit-field is really replaced (diff) | |
download | gpg4usb-4ee66ea9656e8e778baab227d381fa526b8e22db.tar.gz gpg4usb-4ee66ea9656e8e778baab227d381fa526b8e22db.zip |
added possibility to import keys through dropping key-files on keylist or through dropping marked keys on keylist
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@409 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
-rw-r--r-- | textedit.cpp | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/textedit.cpp b/textedit.cpp index ead8f2c..9fa7e9c 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -1,4 +1,5 @@ #include "QDebug" +#include "QUrl" class QString; #include "textedit.h" TextEdit::TextEdit(QWidget *parent) @@ -9,18 +10,23 @@ TextEdit::TextEdit(QWidget *parent) void TextEdit::dragEnterEvent(QDragEnterEvent *event) { if (event->mimeData()->hasFormat("text/plain")) - qDebug() << "enter drag action"; + qDebug() << "enter textedit drag action"; - //event->acceptProposedAction(); + event->acceptProposedAction(); } void TextEdit::dropEvent(QDropEvent* event) { this->setPlainText(event->mimeData()->text()); - qDebug() << "enter drop action"; + qDebug() << "enter textedit drop action"; qDebug() << event->mimeData()->text(); - event->acceptProposedAction(); + foreach (QUrl tmp, event->mimeData()->urls()) + { + qDebug() << "hallo" << tmp; + } + + //event->acceptProposedAction(); } void TextEdit::comment() @@ -30,3 +36,9 @@ void TextEdit::comment() text.insert(0,QString("> ")); this->setPlainText(text); } + +bool TextEdit::isKey(QString key) +{ + qDebug() << key.contains("-----BEGIN PGP PUBLIC KEY BLOCK-----", Qt::CaseSensitive); + return true; +} |