diff options
-rw-r--r-- | qt-ui/divelogimportdialog.cpp | 26 | ||||
-rw-r--r-- | qt-ui/divelogimportdialog.h | 4 |
2 files changed, 0 insertions, 30 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index 7e3721925..3e50e4a97 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -100,32 +100,6 @@ void ColumnNameView::mousePressEvent(QMouseEvent *press) } } -void ColumnNameView::dragLeaveEvent(QDragLeaveEvent *leave) -{ -} - -void ColumnNameView::dragEnterEvent(QDragEnterEvent *event) -{ - if(event->mimeData()->data(subsurface_mimedata).count()) - event->acceptProposedAction(); -} - -void ColumnNameView::dragMoveEvent(QDragMoveEvent *event) -{ - if (event->mimeData()->data(subsurface_mimedata).count()) - event->acceptProposedAction(); -} - -void ColumnNameView::dropEvent(QDropEvent *event) -{ - const QMimeData *mimeData = event->mimeData(); - if (mimeData->data(subsurface_mimedata).count()) { - QVariant value = QString(mimeData->data(subsurface_mimedata)); - model()->insertRow(model()->rowCount()); - model()->setData(model()->index(model()->rowCount()-1, 0), value); - } -} - ColumnDropCSVView::ColumnDropCSVView(QWidget *parent) { setAcceptDrops(true); diff --git a/qt-ui/divelogimportdialog.h b/qt-ui/divelogimportdialog.h index 77990451f..8dc260a7d 100644 --- a/qt-ui/divelogimportdialog.h +++ b/qt-ui/divelogimportdialog.h @@ -49,10 +49,6 @@ public: ColumnNameView(QWidget *parent); protected: void mousePressEvent(QMouseEvent *press); - void dragLeaveEvent(QDragLeaveEvent *leave); - void dragEnterEvent(QDragEnterEvent *event); - void dragMoveEvent(QDragMoveEvent *event); - void dropEvent(QDropEvent *event); private: int currentDraggedIndex; }; |