Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F396
RestoreMouseCursor.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
wald
Aug 4 2010, 5:15 PM
2010-08-04 17:15:07 (UTC+2)
Size
1 KB
Referenced Files
None
Subscribers
None
RestoreMouseCursor.patch
View Options
Index: mitk/CoreUI/Qmitk/QmitkStdMultiWidget.cpp
===================================================================
--- mitk/CoreUI/Qmitk/QmitkStdMultiWidget.cpp (revision 25096)
+++ mitk/CoreUI/Qmitk/QmitkStdMultiWidget.cpp (working copy)
@@ -1397,6 +1397,12 @@
mitkWidget4->GetOverlayController()->AdjustOverlayPosition();
}
+void QmitkStdMultiWidget::leaveEvent ( QEvent * e )
+{
+ //set cursor back to initial state
+ m_SlicesRotator->ResetMouseCursor();
+}
+
mitk::DisplayVectorInteractor* QmitkStdMultiWidget::GetMoveAndZoomInteractor()
{
return m_MoveAndZoomInteractor.GetPointer();
Index: mitk/CoreUI/Qmitk/QmitkStdMultiWidget.h
===================================================================
--- mitk/CoreUI/Qmitk/QmitkStdMultiWidget.h (revision 25096)
+++ mitk/CoreUI/Qmitk/QmitkStdMultiWidget.h (working copy)
@@ -153,6 +153,8 @@
void moveEvent( QMoveEvent* e );
+ void leaveEvent ( QEvent * e );
+
void EnsureDisplayContainsPoint(
mitk::DisplayGeometry* displayGeometry, const mitk::Point3D& p);
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
380
Default Alt Text
RestoreMouseCursor.patch (1 KB)
Attached To
Mode
T3080: Make sure that mouse cursor resumes its default form when leaving a render window
Attached
Detach File
Event Timeline
•
wald
added a comment.
Aug 4 2010, 5:15 PM
2010-08-04 17:15:07 (UTC+2)
Comment Actions
Restore mouse cursor when mouse leave the views
Log In to Comment