[Kst] branches/work/kst/portto4/kst/src/libkstapp

Peter Kümmel syntheticpp at gmx.net
Mon Aug 30 14:43:04 CEST 2010


SVN commit 1169972 by kuemmel:

also compile with Qt 4.5

 M  +1 -1      viewitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.cpp #1169971:1169972
@@ -957,7 +957,7 @@
 void ViewItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
 
   if (event->buttons() & Qt::LeftButton &&
-      (event->pos() - dragStartPosition).manhattanLength() > QApplication::startDragDistance()) {
+      (event->pos() - dragStartPosition).toPoint().manhattanLength() > QApplication::startDragDistance()) {
 
     QDrag *drag = new QDrag(event->widget());
     MimeDataViewItem* mimeData = new MimeDataViewItem;


More information about the Kst mailing list