# HG changeset patch # User Andre Heinecke # Date 1434716916 -7200 # Node ID faece2c212291dbb3332bd6c9d7932d64656229d # Parent bbc3772fe8771d96357ccfc53fc167ba92fefff9 Remove dead Drag&Drop code diff -r bbc3772fe877 -r faece2c21229 src/mainwindow.cpp --- a/src/mainwindow.cpp Fri Jun 19 14:28:11 2015 +0200 +++ b/src/mainwindow.cpp Fri Jun 19 14:28:36 2015 +0200 @@ -99,50 +99,7 @@ restoreState(mSettings.value("windowState").toByteArray()); } } -/* -void MainWindow::dragEnterEvent(QDragEnterEvent *event) -{ - if (event->mimeData()->hasUrls()) { - foreach (const QUrl & url, event->mimeData()->urls()) { - if (url.isLocalFile()) { - event->acceptProposedAction(); - return; - } - } - } -} -void MainWindow::dragMoveEvent(QDragMoveEvent *event) -{ - if (event->mimeData()->hasUrls()) { - foreach (const QUrl & url, event->mimeData()->urls()) { - if (url.isLocalFile()) { - event->acceptProposedAction(); - return; - } - } - } -} - -void MainWindow::dropEvent(QDropEvent *event) -{ - const QMimeData *mimeData = event->mimeData(); - - if (mimeData->hasUrls()) { - foreach (const QUrl & url, mimeData->urls()) { - if (!url.isLocalFile()) { - qDebug() << "Ignoring drop of " << url; - continue; - } - } - } -} - -void MainWindow::dragLeaveEvent(QDragLeaveEvent *event) -{ - event->accept(); -} -*/ void MainWindow::setFolder(const QString& folder) { QFileInfo fi(folder); @@ -206,7 +163,6 @@ connect(fsDialog, &FolderSelectDialog::backClicked, fsDialog, &QDialog::close); fsDialog->show(); -// connect(fsDialog, &QDialog::closeEvent, fsDialog, &QObject::deleteLater); } void MainWindow::showWithFolderSelect() {