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 /gpgwin.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 'gpgwin.cpp')
-rw-r--r-- | gpgwin.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -34,7 +34,6 @@ GpgWin::GpgWin() edit = new TextEdit(); setCentralWidget(edit); -// setAcceptDrops(true); setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea); setCorner(Qt::BottomRightCorner, Qt::RightDockWidgetArea); @@ -69,7 +68,6 @@ GpgWin::GpgWin() loadFile(args[1]); } } - setAcceptDrops(true); } void GpgWin::restoreSettings() @@ -809,18 +807,3 @@ void GpgWin::openSettingsDialog() Qt::ToolButtonStyle buttonStyle = static_cast<Qt::ToolButtonStyle>(settings.value("toolbar/iconstyle", Qt::ToolButtonTextUnderIcon).toUInt()); this->setToolButtonStyle(buttonStyle); } -void GpgWin::dropEvent(QDropEvent* event) -{ - edit->setPlainText(event->mimeData()->text()); - qDebug() << "drop event main"; - //qDebug() << "hallo"; -// event->acceptProposedAction(); -} - -void GpgWin::dragEnterEvent(QDragEnterEvent *event) -{ - //qDebug() << "hallo"; - qDebug() << event->mimeData()->text(); - if (event->mimeData()->hasFormat("text/plain")) - event->acceptProposedAction(); -} |