aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r--gpgwin.cpp17
1 files changed, 0 insertions, 17 deletions
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<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();
-}