summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-06 21:05:14 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-06 19:38:30 -0800
commit8a230f9145816ea1cb4ea8071f6f0d7829900252 (patch)
treee121b65ee0828791a2ab647c5ca50b4888b3be9d /qt-ui
parente3fbfe5498f79676decc5f035ff229d656ff2aed (diff)
downloadsubsurface-8a230f9145816ea1cb4ea8071f6f0d7829900252.tar.gz
Remove drag operations from the 'From' widget
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/divelogimportdialog.cpp26
-rw-r--r--qt-ui/divelogimportdialog.h4
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;
};