[Kst] branches/work/kst/portto4/kst/src/libkstapp
Peter Kümmel
syntheticpp at gmx.net
Wed Sep 1 20:21:05 CEST 2010
SVN commit 1170634 by kuemmel:
show curve axes while D&D
M +9 -0 viewitem.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.cpp #1170633:1170634
@@ -960,6 +960,15 @@
mimeData->item = this;
drag->setMimeData(mimeData);
+ QPixmap pixmap(sceneBoundingRect().size().toSize());
+ pixmap.fill(Qt::white);
+ QPainter painter(&pixmap);
+ paint(&painter); // TODO also paint curves
+ painter.end();
+ pixmap.setMask(pixmap.createHeuristicMask());
+ drag->setPixmap(pixmap.scaled(pixmap.size()/1.5));
+
+
Qt::DropActions dact = Qt::MoveAction;
Qt::DropAction dropAction = drag->exec(dact);
if (dropAction == Qt::MoveAction) {
More information about the Kst
mailing list