Changeset 78003 in vbox for trunk/src/VBox
- Timestamp:
- Apr 3, 2019 4:03:54 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/logviewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.cpp
r76954 r78003 572 572 bool UIVMLogViewerFilterPanel::eventFilter(QObject *pObject, QEvent *pEvent) 573 573 { 574 /* Handle only events sent to viewer(): */ 575 if (pObject != viewer()) 576 return UIVMLogViewerPanel::eventFilter(pObject, pEvent); 577 574 578 /* Depending on event-type: */ 575 579 switch (pEvent->type()) 576 580 { 577 581 /* Process key press only: */ 578 case QEvent::KeyPress:582 case QEvent::KeyPress: 579 583 { 580 584 /* Cast to corresponding key press event: */ … … 595 599 break; 596 600 } 597 default: 598 break; 599 } 601 default: 602 break; 603 } 604 600 605 /* Call to base-class: */ 601 606 return UIVMLogViewerPanel::eventFilter(pObject, pEvent); -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchPanel.cpp
r77087 r78003 334 334 bool UIVMLogViewerSearchPanel::eventFilter(QObject *pObject, QEvent *pEvent) 335 335 { 336 /* Handle only events sent to viewer(): */ 337 if (pObject != viewer()) 338 return UIVMLogViewerPanel::eventFilter(pObject, pEvent); 339 336 340 /* Depending on event-type: */ 337 341 switch (pEvent->type()) … … 387 391 break; 388 392 } 389 default: 390 break; 391 } 393 default: 394 break; 395 } 396 392 397 /* Call to base-class: */ 393 398 return UIVMLogViewerPanel::eventFilter(pObject, pEvent);
Note:
See TracChangeset
for help on using the changeset viewer.