From 4ee66ea9656e8e778baab227d381fa526b8e22db Mon Sep 17 00:00:00 2001 From: nils Date: Tue, 28 Dec 2010 02:56:54 +0000 Subject: 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 --- gpgwin.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'gpgwin.cpp') diff --git a/gpgwin.cpp b/gpgwin.cpp index 1ca52c8..ce13b5c 100644 --- a/gpgwin.cpp +++ b/gpgwin.cpp @@ -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(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(); -} -- cgit v1.2.3