summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/divepicturewidget.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/desktop-widgets/divepicturewidget.cpp b/desktop-widgets/divepicturewidget.cpp
index a3a3c7a65..c612ab6d4 100644
--- a/desktop-widgets/divepicturewidget.cpp
+++ b/desktop-widgets/divepicturewidget.cpp
@@ -47,11 +47,5 @@ void DivePictureWidget::mousePressEvent(QMouseEvent *event)
drag->setPixmap(pixmap);
drag->setHotSpot(event->pos() - rectForIndex(indexAt(event->pos())).topLeft());
- QPixmap tempPixmap = pixmap;
- QPainter painter;
- painter.begin(&tempPixmap);
- painter.fillRect(pixmap.rect(), QColor(127, 127, 127, 127));
- painter.end();
-
drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction);
}