Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r55085 - /trunk/qt-graph/src/QY2Graph.cc
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Tue, 27 Jan 2009 16:05:45 -0000
  • Message-id: <E1LRqRd-0002q7-H9@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Tue Jan 27 17:05:45 2009
New Revision: 55085

URL: http://svn.opensuse.org/viewcvs/yast?rev=55085&view=rev
Log:
- use setAcceptedMouseButtons for nodes

Modified:
trunk/qt-graph/src/QY2Graph.cc

Modified: trunk/qt-graph/src/QY2Graph.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/qt-graph/src/QY2Graph.cc?rev=55085&r1=55084&r2=55085&view=diff
==============================================================================
--- trunk/qt-graph/src/QY2Graph.cc (original)
+++ trunk/qt-graph/src/QY2Graph.cc Tue Jan 27 17:05:45 2009
@@ -393,6 +393,7 @@
: QGraphicsPathItem(path),
picture(picture)
{
+ setAcceptedMouseButtons(Qt::LeftButton);
}


@@ -410,8 +411,7 @@
void
QY2Node::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
{
- if (event->button() == Qt::LeftButton)
- emit doubleClickEvent();
+ emit doubleClickEvent();
}



--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages