[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Thu Mar 2 14:53:04 UTC 2006


SVN commit 515177 by okellogg:

mouseRelease(): Reuse Yan Morin's drag'n'drop patch from
http://www.geeksoc.org/~jr/umbrello/uml-devel/9259.html
BUG:121238


 M  +7 -6      toolbarstatemessages.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/toolbarstatemessages.cpp #515176:515177
@@ -73,12 +73,13 @@
         UMLWidget* obj = 0;
         while ( (obj = it.current()) != 0 ) {
             ++it;
-            if ( obj->isVisible() &&
-                    obj->getBaseType() == Uml::wt_Object &&
-                    obj->onWidget(ome->pos()) ) {
-                clickedOnWidget = static_cast<ObjectWidget*>(obj);
-                isCreationMessage = true;
-                break;
+            if (obj->isVisible() && obj->getBaseType() == Uml::wt_Object) {
+                const QPoint zoomAdjustedPos = (ome->pos() * 100) / m_pUMLView->getZoom();
+                if (obj->onWidget(zoomAdjustedPos)) {
+                    clickedOnWidget = static_cast<ObjectWidget*>(obj);
+                    isCreationMessage = true;
+                    break;
+                }
             }
         }
     }




More information about the umbrello-devel mailing list