Support drag and drop between splits

Change-Id: Ia1e43cb44639e332ee4f9100c7ce3029e9485198
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Eike Ziller
2014-09-04 20:43:09 +02:00
parent 67421f6c53
commit e0c5d2365f
6 changed files with 110 additions and 27 deletions

View File

@@ -207,7 +207,9 @@ MainWindow::MainWindow() :
statusBar()->setProperty("p_styled", true);
auto dropSupport = new Utils::FileDropSupport(this);
auto dropSupport = new Utils::FileDropSupport(this, [](QDropEvent *event) {
return event->source() == 0; // only accept drops from the "outside" (e.g. file manager)
});
connect(dropSupport, SIGNAL(filesDropped(QStringList)),
this, SLOT(openDroppedFiles(QStringList)));
}