diff src/mainwindow.cpp @ 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 c3000fa6ca56
children ad78dc946ed3
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() {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)