Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F513
QmitkStdMultiWidget.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
vongruen
Apr 19 2010, 11:34 AM
2010-04-19 11:34:22 (UTC+2)
Size
1 KB
Referenced Files
None
Subscribers
None
QmitkStdMultiWidget.patch
View Options
Index: QmitkStdMultiWidget.cpp
===================================================================
--- QmitkStdMultiWidget.cpp (revision 22256)
+++ QmitkStdMultiWidget.cpp (working copy)
@@ -25,6 +25,7 @@
#include <qsplitter.h>
#include <QMotifStyle>
#include <QList>
+#include <QMouseEvent>
#include "mitkProperties.h"
#include "mitkGeometry2DDataMapper2D.h"
@@ -1357,6 +1358,13 @@
emit WheelMoved( e );
}
+void QmitkStdMultiWidget::mousePressEvent(QMouseEvent * e)
+{
+ if (e->button() == Qt::LeftButton) {
+ mitk::Point3D pointValue = this->GetLastLeftClickPosition();
+ emit LeftMouseClicked(pointValue);
+ }
+}
mitk::DisplayVectorInteractor* QmitkStdMultiWidget::GetMoveAndZoomInteractor()
{
Index: QmitkStdMultiWidget.h
===================================================================
--- QmitkStdMultiWidget.h (revision 22256)
+++ QmitkStdMultiWidget.h (working copy)
@@ -146,6 +146,8 @@
void wheelEvent( QWheelEvent * e );
+ void mousePressEvent(QMouseEvent * e);
+
void EnsureDisplayContainsPoint(
mitk::DisplayGeometry* displayGeometry, const mitk::Point3D& p);
@@ -195,7 +197,8 @@
signals:
- void WheelMoved( QWheelEvent* );
+ void LeftMouseClicked(mitk::Point3D pointValue);
+ void WheelMoved(QWheelEvent*);
void WidgetPlanesRotationLinked(bool);
void WidgetPlanesRotationEnabled(bool);
void ViewsInitialized();
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
491
Default Alt Text
QmitkStdMultiWidget.patch (1 KB)
Attached To
Mode
T3690: QmitkStdMultiWidget click Event
Attached
Detach File
Event Timeline
•
vongruen
added a comment.
Apr 19 2010, 11:34 AM
2010-04-19 11:34:22 (UTC+2)
Comment Actions
canges for the QmitkStdMultiWidget class
Log In to Comment