Page MenuHomePhabricator

QmitkStdMultiWidget.patch

Authored By
vongruen
Apr 19 2010, 11:34 AM
Size
1 KB
Referenced Files
None
Subscribers
None

QmitkStdMultiWidget.patch

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

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
491
Default Alt Text
QmitkStdMultiWidget.patch (1 KB)

Event Timeline

canges for the QmitkStdMultiWidget class