Commit 03d3732e authored by Jan Möbius's avatar Jan Möbius
Browse files

Added slot debugging for mouse events

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5682 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f24a10c9
...@@ -557,6 +557,8 @@ Core::slotMouseEventIdentify( QMouseEvent* _event ) ...@@ -557,6 +557,8 @@ Core::slotMouseEventIdentify( QMouseEvent* _event )
for ( unsigned int i = 0 ; i < OpenFlipper::Options::examinerWidgets(); ++i ) { for ( unsigned int i = 0 ; i < OpenFlipper::Options::examinerWidgets(); ++i ) {
if ( senderPointer == coreWidget_->examiner_widgets_[i] ) { if ( senderPointer == coreWidget_->examiner_widgets_[i] ) {
examinerId = i; examinerId = i;
if ( OpenFlipper::Options::doSlotDebugging() )
emit log(LOGINFO,"slotMouseEventIdentify from examiner " + QString::number(i) );
break; break;
} }
} }
...@@ -589,7 +591,25 @@ Core::slotMouseEvent( QMouseEvent* _event ) ...@@ -589,7 +591,25 @@ Core::slotMouseEvent( QMouseEvent* _event )
for ( unsigned int i = 0 ; i < OpenFlipper::Options::examinerWidgets(); ++i ) { for ( unsigned int i = 0 ; i < OpenFlipper::Options::examinerWidgets(); ++i ) {
if ( senderPointer == coreWidget_->examiner_widgets_[i] ) { if ( senderPointer == coreWidget_->examiner_widgets_[i] ) {
examinerId = i; examinerId = i;
if ( OpenFlipper::Options::doSlotDebugging() ) {
QString message = "slotMouseEvent from examiner " + QString::number(i) + " with ";
if ( _event->type() == QEvent::MouseButtonRelease )
message += " MouseButtonRelease";
else if ( _event->type() == QEvent::MouseButtonPress )
message += " MouseButtonRelease";
else if ( _event->type() == QEvent::MouseButtonDblClick )
message += " MouseButtonDblClick";
else if ( _event->type() == QEvent::MouseMove )
message += " MouseMove";
else
message += "unknown event type";
emit log(LOGINFO,message );
}
break; break;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment