Mercurial > retraceit
changeset 92:faece2c21229 1.1
Remove dead Drag&Drop code
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 19 Jun 2015 14:28:36 +0200 |
parents | bbc3772fe877 |
children | e4e3228dda08 |
files | src/mainwindow.cpp |
diffstat | 1 files changed, 0 insertions(+), 44 deletions(-) [+] |
line wrap: on
line diff
--- 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() {