[Uml-devel] CVS: kdesdk/umbrello/umbrello umlwidget.cpp,1.5,1.6 floatingtext.cpp,1.3,1.4 objectwidget.cpp,1.5,1.6

kde at office.kde.org kde at office.kde.org
Sun Feb 2 09:30:26 UTC 2003


Update of /home/kde/kdesdk/umbrello/umbrello
In directory office:/tmp/cvs-serv26178

Modified Files:
	umlwidget.cpp floatingtext.cpp objectwidget.cpp 
Log Message:
Can now move more than one widget at once (which I broke yesterday)


Index: umlwidget.cpp
===================================================================
RCS file: /home/kde/kdesdk/umbrello/umbrello/umlwidget.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- umlwidget.cpp	2 Feb 2003 01:52:07 -0000	1.5
+++ umlwidget.cpp	2 Feb 2003 17:29:11 -0000	1.6
@@ -117,7 +117,7 @@
 }
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 void UMLWidget::mouseMoveEvent(QMouseEvent* me) {
-	if( m_bMouseDown ) {
+	if( m_bMouseDown || me->button() == LeftButton ) {
 		QPoint newPosition = doMouseMove(me);
 		int newX = newPosition.x();
 		int newY = newPosition.y();

Index: floatingtext.cpp
===================================================================
RCS file: /home/kde/kdesdk/umbrello/umbrello/floatingtext.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- floatingtext.cpp	2 Feb 2003 00:47:42 -0000	1.3
+++ floatingtext.cpp	2 Feb 2003 17:29:11 -0000	1.4
@@ -303,7 +303,7 @@
 }
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 void FloatingText::mouseMoveEvent(QMouseEvent* me) {
-	if( m_bMouseDown ) {
+	if( m_bMouseDown || me->button() == LeftButton ) {
 		QPoint newPosition = doMouseMove(me);
 		int newX = newPosition.x();
 		int newY = newPosition.y();

Index: objectwidget.cpp
===================================================================
RCS file: /home/kde/kdesdk/umbrello/umbrello/objectwidget.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- objectwidget.cpp	2 Feb 2003 00:47:42 -0000	1.5
+++ objectwidget.cpp	2 Feb 2003 17:29:11 -0000	1.6
@@ -250,7 +250,7 @@
 }
 
 void ObjectWidget::mouseMoveEvent(QMouseEvent* me) {
-	if( m_bMouseDown ) {
+	if( m_bMouseDown || me->button() == LeftButton ) {
 		QPoint newPosition = doMouseMove(me);
 		int newX = newPosition.x();
 		int newY = newPosition.y();





More information about the umbrello-devel mailing list